in reply to
Hash initialisation
The hash slice is the best way to go, as
Happy-the-monk
said
, but also be warned that in
qw/this, that, the_other/
the commas will be included. You probably want to leave them out, as
qw
splits on whitespace without them.
Comment on
Re: Hash initialisation
Select
or
Download
Code
In Section
Seekers of Perl Wisdom