ML dropped bits saying:
did you try chmod 755 tryPerl2.pl ? also do this on first line #!/usr/bin/perl -W
shouldn't that be -w (lowercase)
So I cant browse this file from my internet browser So whats the problem
For displaying in browser you might have to add this before anything gets printed on browser :
print "Content-type:text/html\n\n";
better to do it this way:
use CGI; my $cgi = new CGI;
print $cgi->header();
This works correctly when testing via the command line, running via mod_perl and running via CGI.
It also prints the correct line terminating character for the platform in use. \n\n is actually wrong, though apache will forgive you for making that mistake. For more details, man perlipc and search for Client/Server