in reply to Re: Re: Quote marks lost in system() calls
in thread Quote marks lost in system() calls

This seems to behave as you desire, though I'm still not sure if its what Three-G wants (from his description, I thought its what I previously posted):
if ( @ARGV ) { foreach my $i ( 0 .. $#ARGV ) { print "ARVG[$i]: ", $ARGV[$i], "\n"; } exit(0); } system("perl", $0, 'foo', '"\"bar baz\""'); # or this: system("perl", $0, 'foo', qq("\\"bar baz\\"")); ARVG[0]: foo ARVG[1]: "bar baz"

Replies are listed 'Best First'.
Re: Re: Re: Re: Quote marks lost in system() calls
by dws (Chancellor) on Dec 21, 2000 at 22:37 UTC
    Ha! Good catch. ++ for runrig.