Jeff 'japhy' Pinyan wrote:
On Jun 11, JupiterHost.Net said:


Randy W. Sims wrote:


A better solution would be to allow only a subset of metacharacters,
escaping everything else. This would requre much more effort, but would
be safer. Perhaps there is a module that does something like this? If
not, there should be.

I'm looking at the Regex:: modules but havn't seen anything yet (search for Regex:: on search.cpan.org and click on any link in the results, mine go now where???) , also perldoc perlre has some things about this but for now I think it'll do me :)


When I finish writing Regexp::Parser,

That sounds interesting. I'm looking forward to hear more about that one. (Already dreaming up uses...)


that seems like a good idea... the
ability to parse a regex and strip out (or auto-quote) a specific set of
metacharacters.

Yeah, I breifly though of that. Sounds like your module above would make it trivial. FWIW, two interfaces that came to my mind were 1) an enhanced version of quotemeta() and/or 2) a lexical pragma to override qr//.


Regards,
Randy.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to