Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   Someone plz help with my first pl script (http://www.go4expert.com/forums/plz-help-pl-script-t3597/)

sakthi.abdullah 24Mar2007 21:48

Someone plz help with my first pl script
 
This is the program:

#!/usr/bin/perl -w
use warnings;
print "Your name please";
$name = <STDIN>;
chomp( $name );
print "Hello $name Welcome to the world of perl\n"


I m getting this error ...
username.pl[2]: use: not found.
Your name please
username.pl[4]: Syntax error at line 5 : `;' is not expected.


Is there any problem with this script..
or any other probs..
I suspect some problem with perl executable ... but i dont know how to fix it.

Guys plz help.

Thanks .

Sakthi.Abdullah

pradeep 24Mar2007 22:52

Re: Someone plz help with my first pl script
 
What OS are you using??

sakthi.abdullah 26Mar2007 16:49

Re: Someone plz help with my first pl script
 
Hp-ux B.11.11

pradeep 29Mar2007 17:55

Re: Someone plz help with my first pl script
 
try installing the latest distibution of Perl.


All times are GMT +5.5. The time now is 12:39.