in reply to Shell characters coming back to bite me.

An answer how to use many arg open has already been given, and you probably should use that.

For future reference, if I do have to pass something to the shell, but I need to be sure it will not blow up due to characters special to the shell, I do:

my $thingy = "...."; $thingy =~ s/'/'"'"'/g; my $cmd = "womble womble '$thingy' wibble wibble";

Replies are listed 'Best First'.
Re^2: Shell characters coming back to bite me.
by Anonymous Monk on Mar 20, 2012 at 14:36 UTC