Think about Loose Coupling | |
PerlMonks |
Re^3: create hash names dynamicallyby citromatik (Curate) |
on Jun 11, 2007 at 12:33 UTC ( [id://620484]=note: print w/replies, xml ) | Need Help?? |
{} creates an empty reference to an anonymous hash. Then,
Reads: For each element in the array @a, create a reference to an empty hash and store it in the array @hashes It could be written more compact as in: push @hashes,{} for (@a);or
Hope this helps! citromatik
In Section
Seekers of Perl Wisdom
|
|