in reply to regex: extract a substring

Thanks for the help! I did need to maintain the value of $foo - my final code was
$value =~ /$header:_:(.*?):_:/; $data = $1; push(@rows, $data);
Works great :)

Replies are listed 'Best First'.
Re: regex: extract a substring
by sfink (Deacon) on May 24, 2002 at 04:16 UTC
    Then why not just push(@rows, $value =~ /$header:_:(.*?):_:/);