Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Now when I get($page) via LWP::Simple, how do I then s/$var/ with the results of a subroutine? Each placeholder has their own subroutine to determine what will be printed in that section.
$page =~ s/\$galleryname/&galleryname/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex to replace $vars with subroutine
by friedo (Prior) on Jun 06, 2008 at 19:53 UTC | |
|
Re: Regex to replace $vars with subroutine
by Corion (Patriarch) on Jun 06, 2008 at 20:05 UTC | |
by Anonymous Monk on Jun 06, 2008 at 23:06 UTC | |
by kyle (Abbot) on Jun 07, 2008 at 01:19 UTC | |
|
Re: Regex to replace $vars with subroutine
by kyle (Abbot) on Jun 06, 2008 at 21:51 UTC | |
|
Re: Regex to replace $vars with subroutine
by Narveson (Chaplain) on Jun 06, 2008 at 19:58 UTC |