in reply to Re: Foreach loop not looping?!
in thread Foreach loop not looping?!

Ah right, thanks. I've done that but the output hasn't changed at all. I think this is something to do with @orders being taken from XML::Simple, which is apparently a pain in the arse for looping.

Replies are listed 'Best First'.
Re^3: Foreach loop not looping?!
by almut (Canon) on Oct 09, 2008 at 15:08 UTC
    ...but the output hasn't changed at all.

    Seems hard to believe :)  At least, a pair of outer brackets should've been added to the dump. Otherwise, it all depends on what exactly your @orders array contains (one or more elements, etc.).

    Perhaps showing some sample dumps (stripped down) would help shed light on what's going on...