in reply to Alternative to Substr?
I think you want to do something like this:
$match #what you want to match $string # the string to extract from if($string =~ /$match(.+)/){ ... do something with $1 ... }
This assumes that $match only occurs once in the string, and that you want everthing after that point.
TheEnigma
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Alternative to Substr?
by tachyon (Chancellor) on Sep 29, 2004 at 12:17 UTC | |
by TheEnigma (Pilgrim) on Sep 29, 2004 at 13:14 UTC |