rajaguha has asked for the wisdom of the Perl Monks concerning the following question:
Now, is it possible to write the same thing w/o using the intervening $hash_ref?my $hash_ref; @{$hash_ref}{qw/a b c d/} = (qw/A B C D/); push @array_of_hash_refs, $hash_ref;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Slicing hashes that don't exist
by Corion (Patriarch) on Sep 08, 2010 at 12:26 UTC | |
|
Re: Slicing hashes that don't exist
by BrowserUk (Patriarch) on Sep 08, 2010 at 13:48 UTC | |
|
Re: Slicing hashes that don't exist
by moritz (Cardinal) on Sep 08, 2010 at 12:52 UTC |