Luken8r has asked for the wisdom of the Perl Monks concerning the following question:
The lines inside of the blocks are not always equal in length nor always integers or positive numbers, but always the same number of lines between START/ENDSTART DATA 3 0.0 0 3 5 6 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 3 4 5 4 4 5 6 7 7 7 3 4 3 4 5 6 4 5 6 .... END DATA
But my perl knowledge isnt that great so Im stuck for ideas on how to get to this point. Any help would be appreciated@arrayblock = [ @line1[], @line2[], @line3[], etc... ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Looking for a good way to split a file into equal sized arrays
by johngg (Canon) on Nov 26, 2007 at 14:30 UTC | |
|
Re: Looking for a good way to split a file into equal sized arrays
by wfsp (Abbot) on Nov 26, 2007 at 14:42 UTC | |
by Luken8r (Novice) on Nov 26, 2007 at 16:12 UTC | |
|
Re: Looking for a good way to split a file into equal sized arrays
by educated_foo (Vicar) on Nov 26, 2007 at 13:55 UTC | |
|
Re: Looking for a good way to split a file into equal sized arrays
by TheForeigner (Initiate) on Nov 26, 2007 at 15:27 UTC | |
by Luken8r (Novice) on Nov 26, 2007 at 21:21 UTC |