Rob/James
Thanks for the input guys, still not quite there, damm nice code though...
Well, well, aren't you a problem child. :) Just kidding.
the data files I process are typically 3000 lines long and full of blank
lines, i use HTML::PARSER to strip the pages.
sod's law say's the example I gave cannot be trusted ( and it can't)
a line like 2 (5) cannot be expected, what can be expected is that
after a count of 23 there will be the next number OR 22 there will be a
blank line followed by the next sequence number. So the line will just be
That's the best description you've given yet, in my not so humble opinion. I can handle that.
my @sequence;
while (<DATA>) { chomp; next if /^\s*$/; # skip that extra blank line, if needed /^(\d+)/ or die "Format error, number expected.\n"; # find the number push @sequence, $1; # store it <DATA> foreach 1..22; # skip 22 lines }
# use @sequence down here...
How's that?
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]