in reply to Re: Function call inside regexp
in thread Function call inside regexp
The trick is to use de-reference a refence to a value. You can put almost any expresion inside the ${\( )} and it will be well evaluated.$b =~ s/\:\:/${\(File::Spec->rootdir())}/;
|
|---|