http://qs1969.pair.com?node_id=322359


in reply to Re: Re: Re: What's #! got to do with it?
in thread What's #! got to do with it?

Keep in mind that, at least on Win2k, that %* at the end will tell Windows to feed the entire rest of the line to your script, including redirects. So if you tried this:

.\output.pl > anotherfile.txt
@ARGV would look like this:
@ARGV = ('>', 'anotherfile.txt');
and the output would not be redirected. For that reason, I always use the perl script.pl version on Windows, which will work correctly with redirects.

kelan


Perl6 Grammar Student