in reply to Using @ARGV with an ‘>’ in the command line

The '>' in the commandline redirects STDOUT at the OS level (well, shell really) to a file. Your Perl script doesn't know anything about that.

Your script will get @ARGV populated with just 'originalprogram'. Anything that you print or would otherwise be sent to STDOUT will end up in a file called 'program_after_EyeDrops'.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Using @ARGV with an ‘>’ in the command line
by chinamox (Scribe) on Nov 06, 2006 at 03:33 UTC

    Thank you very much for another quick and helpful response!

    -mox