Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Substitution with regexes in variables

by JadeNB (Chaplain)
on Nov 15, 2009 at 07:38 UTC ( [id://807232]=note: print w/replies, xml ) Need Help??


in reply to Re: Substitution with regexes in variables
in thread Substitution with regexes in variables

It is probably better to use Text::Balanced's extract_quotelike function rather than hand-rolling a substitution parser. (At least, the documentation suggests that it will handle s///'s correctly; and your code makes no effort to handle differently delimited patterns, among the (I assume) many other possible perversions.)

Replies are listed 'Best First'.
Re^3: Substitution with regexes in variables
by ikegami (Patriarch) on Nov 15, 2009 at 07:56 UTC

    That would allow other delimiters, but that would make it *more* complicated from a security standpoint. I didn't want to spend time thinking of the implications.

      That would allow other delimiters, but that would make it *more* complicated from a security standpoint.
      Ah, I guess in the sense that it wouldn't strip out refuse to allow escapes (as you have done), and that sort of thing?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-28 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found