Someone plz help with my first pl script

Go4Expert Member
24Mar2007,21:48   #1
sakthi.abdullah's Avatar
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
Team Leader
24Mar2007,22:52   #2
pradeep's Avatar
What OS are you using??
Go4Expert Member
26Mar2007,16:49   #3
sakthi.abdullah's Avatar
Hp-ux B.11.11
Team Leader
29Mar2007,17:55   #4
pradeep's Avatar
try installing the latest distibution of Perl.