help me on strawberry perl =(
Posted 30 September 2010 - 10:11 AM
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???
Posted 30 September 2010 - 01:16 PM
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.
Posted 01 October 2010 - 06:40 AM
i don understand, wut do u mean by go to the same folder in cmd window? cmd is wut? command?