Wednesday, April 3, 2013

Try the Perl test script:

#vi test.pl
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "<html><body><h1>Perl is working!</h1></body></html>";


Then browse the pearl file to see if perl is working.

Tracking Errors in Script
---------------------------------
Execute the following from command line :

#perl -wc scriptname.pl

Perl interpreter will check the script for syntax errors. If syntax is correct it will show the following output,

scriptname.pl syntax OK

No comments:

Post a Comment