rjberry has asked for the wisdom of the Perl Monks concerning the following question:
I must be doing something incredibly stupid, but my foreach loop isn't working correctly.
print Dumper(@orders); print "\n\n"; foreach (@orders) { print Dumper($_); die(); }
In both the dumps the exact same array is being given back. So it doesn't seem to be splitting it up, just regurgitating it back to me. Anybody have any idea why?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Foreach loop not looping?!
by almut (Canon) on Oct 09, 2008 at 14:19 UTC | |
by rjberry (Novice) on Oct 09, 2008 at 14:43 UTC | |
by almut (Canon) on Oct 09, 2008 at 15:08 UTC | |
|
Re: Foreach loop not looping?!
by moritz (Cardinal) on Oct 09, 2008 at 14:20 UTC | |
|
Re: Foreach loop not looping?!
by GrandFather (Saint) on Oct 09, 2008 at 20:56 UTC | |
|
Re: Foreach loop not looping?!
by injunjoel (Priest) on Oct 10, 2008 at 01:50 UTC |