file parsing

Jonathan Gardner jgardn at alumni.washington.edu
Tue Aug 13 19:49:16 PDT 2002


On Friday 09 August 2002 12:00 am, M. Hornung wrote:
>
> $line =~ /^(.*\|$item)$/;
>       ^
>
> =~ will store the result of the following expression in $line.
>

Actually, this will run the regex against $line... If you want to store it you 
have to do this:

$line =~ /..(...)./;
$line = $1;

-- 
Jonathan Gardner
jgardn at alumni.washington.edu


More information about the Linux mailing list