in reply to Regex to replace $vars with subroutine
All you're missing is the /e modifier, see perlre.
$page =~ s/\$galleryname/galleryname()/ge
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex to replace $vars with subroutine
by Anonymous Monk on Jun 06, 2008 at 23:06 UTC | |
by kyle (Abbot) on Jun 07, 2008 at 01:19 UTC |