in reply to Get Entire Command Line of a Program

Perl never sees the redirection. The redirection is handled by the shell invoking your program.

If you just want to launch another program as if it were your program, see exec.

Otherwise, maybe you can tell us what you want to achieve, then we can maybe give you a better way of getting there.

  • Comment on Re: Get Entire Command Line of a Program