in reply to Foreach loop not looping?!

How about you show us a real sample that we can actually run and that shows the problem you are having in the output?

If the first and only element in @orders were a reference to an array then what you describe is exactly what I would expect to see. Maybe there is a bug elsewhere in the code that we can't see and your expectations of the content of the orders array are wrong?


Perl reduces RSI - it saves typing