in reply to Parsing multi-line records
So, now you've got your datasets in the list @datasets...my $recordSet = 11; open (FILE, $file) or die $!; my @list = <FILE>; close (FILE); my @datasets = (); while (my @subList = splice( @list, 0, $recordSet) ){ push (@datasets, join("\n", @subList); } undef @list;
|
---|
Replies are listed 'Best First'. | |
---|---|
(Ovid) Re: Re: Parsing multi-line records
by Ovid (Cardinal) on Dec 04, 2001 at 21:44 UTC | |
by strat (Canon) on Dec 04, 2001 at 22:10 UTC |