"be consistent" | |
PerlMonks |
Re: assign an array into hashby GrandFather (Saint) |
on Apr 26, 2007 at 09:31 UTC ( [id://612169]=note: print w/replies, xml ) | Need Help?? |
qw(@con) is an error. Perl would have told you about it if you used strictures (use strict; use warnings;). Always use strictures. qw quotes 'words' where in this case a 'word' is any sequence of non-white space characters. @con is taken to be a word by qw so you are trying to assign a single element list to a hash - that doesn't do what you want. Consider instead:
Prints:
DWIM is Perl's answer to Gödel
In Section
Seekers of Perl Wisdom
|
|