Your first dump probably should've been (note the backslash)
print Dumper(\@orders);
If you pass an array (instead of an array ref) to Dumper, its individual elements are being dumped, which effectively produces the same output as your explicit looping...
In reply to Re: Foreach loop not looping?!
by almut
in thread Foreach loop not looping?!
by rjberry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |