|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Foreach in a 2D arrayby ihb (Deacon) |
| on Oct 28, 2004 at 09:15 UTC ( #403323=note: print w/ replies, xml ) | Need Help?? |
|
You need to dereference the array before iterating through it, otherwise you iterate over one element (the reference). That means you need to change $dataoptions{$columns[$i]} to @{$dataoptions{$columns[$i]}}. Related documents:
ihb
See perltoc if you don't know which perldoc to read!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||