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'.
In reply to Re: Using @ARGV with an ‘>’ in the command line
by GrandFather
in thread Using @ARGV with an ‘>’ in the command line
by chinamox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |