Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Working with an Array of Array Namesby bruceb3 (Pilgrim) |
on Oct 07, 2007 at 23:38 UTC ( [id://643343]=note: print w/replies, xml ) | Need Help?? |
Fist of all, I am not sure exactly what you are trying to do, so here is an answer with my best guess at what you are wanting to achieve.
You really need to read perlref. If you are using a *NIX server, from the command line type;
And study away. Now to my "solution";
Some explaination; The $arr->{car} is a reference to a hash where the key is the string "car". The @{ } says to treat the value of the hash as an array. And you know what push does. perlref will be explain it completely.
In Section
Seekers of Perl Wisdom
|
|