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/){ .... }
In reply to Re: is this a regexp question ?
by jorg
in thread is this a regexp question ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |