how to use perl?
i've already install this perl.. then how to use it?
i have some code to be use by using this perl.. but where must i write the coding?
i use devc++.. but when i compiling, it says, 'sub' does not name a type
what does it mean???
Submit your paper to J Biol Methods today!

help me on strawberry perl =(
Started by
ikwana
, Sep 30 2010 10:11 AM
3 replies to this topic
#1
Posted 30 September 2010 - 10:11 AM
#2
Posted 30 September 2010 - 01:16 PM
Perl scripts do not need compiling.
To test whether your perl instilation is successful, you can bring up a cmd window by going to Start -> Run -> type cmd. In the command window, type: perl -V, you should a lot of information returned by perl about your instillation.
To run a script, write a script using a text editor like this:
Save the file as hello.pl, then go to the same folder in cmd window and type "perl hello.pl", you can see "Hello World" on your screen.
In linux or unix, usually a perl script starts with #!/usr/bin/perl as the first line, in windows, it is not necessary.
To test whether your perl instilation is successful, you can bring up a cmd window by going to Start -> Run -> type cmd. In the command window, type: perl -V, you should a lot of information returned by perl about your instillation.
To run a script, write a script using a text editor like this:
print "Hello World!";
Save the file as hello.pl, then go to the same folder in cmd window and type "perl hello.pl", you can see "Hello World" on your screen.
In linux or unix, usually a perl script starts with #!/usr/bin/perl as the first line, in windows, it is not necessary.
#3
Posted 01 October 2010 - 06:40 AM
where must i save the hello.pl?
i don understand, wut do u mean by go to the same folder in cmd window? cmd is wut? command?
i don understand, wut do u mean by go to the same folder in cmd window? cmd is wut? command?