P is for Practical | |
PerlMonks |
Re: Is this the correct structure?by code-ninja (Scribe) |
on Jul 05, 2013 at 12:22 UTC ( [id://1042700]=note: print w/replies, xml ) | Need Help?? |
The simplest way to do this can be:
What happens here is, the split "tokenizes" each line assuming the space between the words as the delimiter. The square brackets around the split create a reference to an anonymous array which is pushed into the array of arrays data structure. UPDATEUmm 2teez already said what I wrote above... I did not check the replies before posting... mesa bad.
In Section
Seekers of Perl Wisdom
|
|