On Mon, Jan 10, 2011 at 11:21 AM, Shawn H Corey <shawnhco...@gmail.com> wrote: > It isn't used if you start your scripts from Windows.
It worked for me earlier: On Mon, Jan 10, 2011 at 10:43 AM, Brandon McCaig <bamcc...@gmail.com> wrote: > I just tested with Strawberry Perl v5.12.1 in Windows XP with the > following code: > > #!/usr/bin/perl -w > > my @a; > my $b = @a[0]; > > __END__ > > When run, I get: > > Scalar value @a[0] better written as $a[0] at test.pl line 4. Invoked like: perl test.pl >> Invoking like this , you are specifying perl interpreter , is not it? Then why do we need 1st line ? Only test.pl also run this program . If I remove the -w from the shebang line then no warning is output. Unless I'm misunderstanding you... -- Brandon McCaig <http://www.bamccaig.com> <bamcc...@gmail.com> V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl. Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org> -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/