in reply to Returning an array in a specific way for csv
Could you be more specific what you want the output to look like? Also, how would the code know when to break apart the input - is it just each "X1" marker that the code encounters, or is it something else like "BEGIN_TAG"? To put that a different way, what should the output for this input look like? (How do I post a question effectively?)
BEGIN_TAG X1 a b c d X1 e f g h BEGIN_TAG X1 i j k l X1 m n o p
As for the data structure, as one possibility I'd suggest you have a look at "Hashes of Arrays" in perldsc.
Update: For CSV input and output, I'd very strongly recommend Text::CSV.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Returning an array in a specific way for csv
by Arengin (Novice) on Mar 13, 2017 at 16:03 UTC | |
by haukex (Archbishop) on Mar 13, 2017 at 16:18 UTC | |
by Arengin (Novice) on Mar 14, 2017 at 08:25 UTC |