in reply to Out of date over <> and 5.10
Redirection not working for Perl scripts on Windows for some instances of Perl has been reported for a very long time. You can always fix it by specifying 'perl' in the command line (like "perl -S test.pl < test.pl") or by transforming test.pl into test.bat by using pl2bat or something similar.
I have never seen anybody even come close to isolating what causes some installs to exhibit this problem while other installs do not.
The obvious thing to look at is the output of "assoc .pl" and "ftype SEEABOVE", for example:
C:\> assoc .pl .pl=perlscript C:\> ftype perlscript perlscript=perl "%1" %* C:\>
But I believe that previous cases showed no anomalies with the above settings.
I personally just use pl2bat and don't worry about configuring *.pl associations or adding .PL to PATHEXT. But it does mean that Ctrl-C prompts you annoyingly (but I find a lot of other benefits to it).
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Out of date over <> and 5.10 (redir)
by BrowserUk (Patriarch) on Sep 08, 2010 at 06:59 UTC | |
by Corion (Patriarch) on Sep 08, 2010 at 07:40 UTC | |
by ikegami (Patriarch) on Sep 08, 2010 at 14:24 UTC | |
by BrowserUk (Patriarch) on Sep 08, 2010 at 14:48 UTC | |
by tye (Sage) on Sep 08, 2010 at 17:42 UTC | |
by BrowserUk (Patriarch) on Sep 08, 2010 at 18:27 UTC | |
| |
by ikegami (Patriarch) on Sep 08, 2010 at 16:17 UTC | |
by tye (Sage) on Sep 08, 2010 at 18:16 UTC |