jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
which should give: bla/blabla , but instead I get:use File::Spec ; $a = "bla::blabla" ; $b =~ s/\:\:/File::Spec->rootdir()/ ; print "$b\n" ;
blaTestFile::Spec->rootdir()blabla
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Function call inside regexp
by mickeyn (Priest) on Mar 07, 2006 at 10:21 UTC | |
by nicoaimetti (Acolyte) on Mar 07, 2006 at 13:16 UTC | |
|
Re: Function call inside regexp
by davorg (Chancellor) on Mar 07, 2006 at 11:20 UTC |