Perl cmds doesn't work in Bash shell . Plz help

Hi everyone,
I have a Linux OS in my PC (older version 9). Its default shell is bash. Whenever I try to run some Perl program it throws error ! eg, if I run this simple PERL program ,

#!/usr/bin/perl

printf "\lHello \n";

$var=3 ;
printf $var;

@list=(1,2,3);
printf "@list";
------------------------ it says -
in Bash =3 command is not found and the last two lines have syntax error !
:eek:
I tried it in cygwin also & got the same error (its default shell is also bash). But in my Office -PC, no error is observed.
How to tackle with this situation? should I get the latest version of Linux on which PERL can run without error ?
Please help.

first off :
change the shebang to be on the FIRST line of the perl script, in the first lefthand column.

Second: If that does not work, then

jmcnama> which perl
/usr/local/bin/perl

The which command tells you where perl lives. Change the first line to point to that:
I am making up something here, use what your system says:

#!/usr/local/bin/perl

===================================================

Thanks jim
Which perl on my cygwin gives
cygdrive/c/Perl/bin/Perl

But even if I use this line I get the previously mentioned errors .!

please post your script - use code tags around the script text

The script is -

#!/cygdrive/c/Perl/bin/perl

$var=3 ;
printf $var;

@list=(1,2,3);
printf "@list";
---------------------------
the error i get in cygwin is -

bash: =

The script is -

#!/cygdrive/c/Perl/bin/perl

$var=3 ;
printf $var;

@list=(1,2,3);
printf "@list";
---------------------------
the error i get in cygwin is -

bash: = 3: command not found

syntax error near unexpected token '1, 2, 3'

Make sure that path to perl is in your PATH variable.

perl -e 'print "hello world\n"; '