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())}/;
In reply to Re^2: Function call inside regexp
by nicoaimetti
in thread Function call inside regexp
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |