Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Dangerous Characters for system calls

by soonix (Prior)
on Oct 16, 2013 at 08:11 UTC ( #1058406=note: print w/replies, xml ) Need Help??

in reply to Dangerous Characters for system calls

If really "various" system calls are necessary, chances are that there are characters that need to be escaped in one case and shouldn't be escaped in another. For example, ISTR different regex engines have different conventions for grouping parentheses (escaped for literal, unescaped for groups, or the other way around for "older" engines).

And depending on how various the called systems are, escaping is not always by backslash, and the treatment of "unnecessary" escapes also depends on the called system.

Of course, you have to draw a line somewhere before becoming paranoid. Re: Dangerous Characters for system calls seems to be a good start, although I'd add some whitespace :-)
[a-zA-Z0-9 ]

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058406]
[stevieb]: interestingly enough, someone else got my Devel::Examine:: Subs distribution for their PRC, and I applaud the change. This dist is extremely complicated and mostly obfu, but the person doing it understood PPI enough to change...
[stevieb]: ...something I had overlooked in the extreme depths of the core functionality. After merging, then a couple of extra tweaks, I still have 100% test coverage. Yay for people who write tests!

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-01-24 01:18 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (199 votes). Check out past polls.