in reply to Regex question
if ( $string =~ m/(foobar)/ ) { $match = $1; } else { $match = "chiapet"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Regex question
by carric (Beadle) on Mar 19, 2004 at 22:37 UTC | |
by Happy-the-monk (Canon) on Mar 19, 2004 at 23:34 UTC |