Protocol Online logo
Top : New Forum Archives (2009-): : Bioinformatics and Biostatistics

help me on strawberry perl =( - (Sep/30/2010 )

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???

-ikwana-

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:
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.

-pcrman-

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?

-ikwana-

Try this:
http://www.gossland.com/course/intro/running.html

-perlmunky-