Someone plz help with my first pl script

sakthi.abdullah's Avatar, Join Date: Mar 2007
Go4Expert Member
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's Avatar, Join Date: Apr 2005
Team Leader
What OS are you using??
sakthi.abdullah's Avatar, Join Date: Mar 2007
Go4Expert Member
Hp-ux B.11.11
pradeep's Avatar, Join Date: Apr 2005
Team Leader
try installing the latest distibution of Perl.