in reply to Re: Get Entire Command Line of a Program
in thread Get Entire Command Line of a Program

Won't this pretty much do what you're asking for?:

... if( some condition ) { ## fork and exit; ## Update: redundant exec $^X, $0, @ARGV; }

Replies are listed 'Best First'.
Re^3: Get Entire Command Line of a Program
by HalNineThousand (Beadle) on Oct 20, 2010 at 02:11 UTC
    I was hoping to also get anything like IO redirection, but I see from other responses that's not possible. Otherwise, it would do it. Thanks.