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
And now you have it. The other way is to read the file a line at a time and using sentinels funnel the information into two different variables.use IO::File (); my $fh = IO::File->new($filename,'r'); ### slurp it in my $txt; read($fh,$txt,-s $filename); my $LS = ($txt=~s/^(LINESCORE(.+?)\n\r?\n)//s) ? $1 : '';
|
|---|