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 : '';
In reply to Re: Re: Re: Using a Sub to pull info. from a Text File
by Rhandom
in thread Using a Sub to pull info. from a Text File
by Perl Newby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |