geedorah:/home/wstest# perl -E '$foo{a}=1; $foo{b}=2; say join",", @foo{qw#a b#}'
1,2
####
geedorah:/home/wstest# perl -wE '$foo{a}=1; $foo{b}=2; say join",", @foo{qw#a b#}'
Scalar value @foo{qw#a b#} better written as $foo{qw#a b#} at -e line 1.
1,2
####
geedorah:/home/wstest# perl -wE '$foo{a}=1; $foo{b}=2; say join",", $foo{qw#a b#}'
Use of uninitialized value within %foo in join or string at -e line 1.
####
geedorah:/home/wstest# cat /etc/debian_version
6.0.1
geedorah:/home/wstest# perl --version
This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi
(with 51 registered patches, see perl -V for more detail)
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
geedorah:/home/wstest#