http://qs1969.pair.com?node_id=1038453

karlgoethebier has asked for the wisdom of the Perl Monks concerning the following question:

Hi, please take a look at this little snippet:

use Data::Dumper; my $dir=$ARGV[0]; print Dumper(\@ARGV); print $dir; print shift; __END__ D:\tmp\Scripts>z1.pl foo $VAR1 = []; Use of uninitialized value $dir in print at D:\tmp\Scripte\z1.pl line +12. Use of uninitialized value in print at D:\tmp\Scripte\z1.pl line 14. D:\tmp\Scripts>perl z1.pl foo $VAR1 = [ 'foo' ]; foofoo D:\tmp\Scripte>

Big surprise!

It works on Linux, Mac and XP.

OS is Windows7 with ActivePerl.

Whats going on here?

Thank you and regards, Karl

«The Crux of the Biscuit is the Apostrophe»