http://qs321.pair.com?node_id=200131


in reply to Backticked commands and the readpipe blues

Hi, grinder!

Maybe I completely miss your point, but what's wrong about

my @args = map { ($_, foo($arg{$_})) } keys %args; # either: prepend \ to all $ in @args s/\$/\\\$/g foreach @args; # or maybe: quote all single quotes, then single-quote all args s/'/\\'/g foreach @args; @args = map "'$_'", @args; my @output = `/bin/foo @args`;

Am I missing something?

So long,
Flexx