in reply to is this a regexp question ?
There is no real need to put a function call in the regex.sub search_equivalent{ #do stuff here and return your equivalent pattern return $equivalent; } my $equiv = search_equivalent(); if ($thisstring =~ m/$equiv/){ .... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re (2): is this a regexp question ?
by ar0n (Priest) on Jun 04, 2001 at 05:14 UTC |