|Keep It Simple, Stupid|
Splitting multiline scalars into different array entriesby davis (Vicar)
|on Aug 05, 2005 at 10:13 UTC||Need Help??|
davis has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to split an AoA into different entries if individual scalar values are multiline values. (I thought this was called "pivoting", but looking at Data::Pivot suggests I'm wrong). Super Searching on "split multiline array" doesn't seem to reveal much.
What I've tried already doesn't work as intended (it should be pretty obvious what end result I'm looking for) and I don't think I need to know the width of the arrays.
Any help gratefully received. Does anyone know what the technique should be called for a start?
Update: Forgot to say: here I'm only printing out the attempted newly-created array. I'd prefer to re-create the original array with the split data, with the rows in the correct order
Kids, you tried your hardest, and you failed miserably. The lesson is: Never try.