Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Function call in regex replacement string

by Tanktalus (Canon)
on Feb 25, 2009 at 06:36 UTC ( [id://746179]=note: print w/replies, xml ) Need Help??


in reply to Function call in regex replacement string

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)

  • Comment on Re: Function call in regex replacement string

Replies are listed 'Best First'.
Re^2: Function call in regex replacement string
by PoorLuzer (Beadle) on Feb 25, 2009 at 09:29 UTC
    Oh how I wish there was another way out than eval.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://746179]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found