note
bmann
No, it's not silly - see the seemingly unrelated [id://443042] as well as [http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/faq/Windows/ActivePerl-Winfaq5.html#STDIN_and_STDOUT_and_Piping_don|perlwin32faq5]:
<blockquote>STDIN and STDOUT, and Piping don't always work on NT/2000.<p>
You may get unexpected results when you try to redirect the output of files that use Windows NT/2000's file association feature. You can use PerlApp or pl2bat to convert a Perl script to an executable or a batch file. This should solve any problems you may have with redirection.</blockquote><p>
Another alternative that works is to run the script as <c>perl script.pl</c> (which you did).<p>
You can add XP to the list of OSes on the first line. I've searched, but I've never seen a complete explanation for this oddity.
526914
526914