Lhamo_rin has asked for the wisdom of the Perl Monks concerning the following question:
I now am attempting to create a foreach loop that will allow me to pull out some of those values, foreach @array to put into a hash. I have triedfor (@data) { push(@{$arrays}, [split(/ /,$data[$a])]); $a++; }
but have had no success. Any suggestions?foreach (@arrays) and foreach (@arrays[0])
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: foreach loop with array of arrays
by dragonchild (Archbishop) on Jun 26, 2003 at 17:59 UTC | |
by Anonymous Monk on Aug 29, 2014 at 18:56 UTC | |
|
Re: foreach loop with array of arrays
by hardburn (Abbot) on Jun 26, 2003 at 17:56 UTC | |
|
Re: foreach loop with array of arrays
by Tomte (Priest) on Jun 26, 2003 at 17:57 UTC | |
|
Re: foreach loop with array of arrays
by xdg (Monsignor) on Jun 26, 2003 at 18:04 UTC |