in reply to Re: Re: Using a Sub to pull info. from a Text File
in thread Using a Sub to pull info. from a Text File
that puts linescore data into @LS, line by line, for you to work with at your leisure, you could split it and do more where the push is if you wanted......open file... $linescore = 0; while(<DATA>) { if($linescore) { last if /^\s*$/; #break the loop if you find a ## blank line after a LINESCORE chomp; #clear off \n push @LS, $_; } elsif(/^LINESCORE/) { $linescore = 1 } } close DATA;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(bbfu) (golf? or just TIMTOWTDI?) Re(4): Using a Sub to pull info. from a Text File
by bbfu (Curate) on Apr 11, 2001 at 00:57 UTC | |
|
Re: Re: Re: Re: Using a Sub to pull info. from a Text File
by rchiav (Deacon) on Apr 11, 2001 at 01:09 UTC |