go ahead... be a heretic | |
PerlMonks |
Re: Function call in regex replacement stringby Tanktalus (Canon) |
on Feb 25, 2009 at 06:36 UTC ( [id://746179]=note: print w/replies, xml ) | Need Help?? |
This node gave me the idea to post Yet another perl-rename tool which has the way I approached this problem. I simply created a code ref on the fly using eval STR, and then called the function to make the change. Not recommended for insecure environments, but, really, if you're logged in as your own user, all you can screw up is yourself ;-) (i.e., don't use this for CGI or stuff)
In Section
Seekers of Perl Wisdom
|
|