Re: Nested Loop Problemsby furry_marmot (Pilgrim)
|on May 02, 2012 at 21:10 UTC||Need Help??|
I tried to write some code to help you out, but I'm not at all sure what you're doing. First, split works on strings, not arrays. It also returns a list. So...
attempts to split an array, which is never going to happen. Then...
attempts to assign the list that you wanted to appear to $list, which is a scalar. In scalar context, split returns the number of elements that resulted from the split, not the elements themselves. And foreach also works on lists, not scalars.
Regarding your data, is it lines of data with embedded newlines? As newlines, wouldn't they be separate lines already? Anyway, maybe this will help: