in reply to Function call inside regexp
use the /e modifier to evaluate the right-hand side of the RE.
$b =~ s/\:\:/File::Spec->rootdir()/e ;
Enjoy,
Mickey
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Function call inside regexp
by nicoaimetti (Acolyte) on Mar 07, 2006 at 13:16 UTC |