C:\>perl foo.pl
and if you can tell Perl to look in other places than the current directory, then you have to teach me how to do it, because I must be ignorant on that.
(To tell the truth, I am using Perl mostly, and by far, on Unix or Linux systems, and also VMS systems; and when I have to use it on Windows, I do it most often under Cygwin, because bash is so much better than the Windows command environment. Sometimes I have to use Strawberry Perl or Active Perl under Windows, and, each time, I wish I did not have to do that, because, as you possibly implied but did not say, the environment is so much crippled. So, if you can show me good ways of doing it, I'll very happily take them and be very grateful to you.)
But don't tell me that you have to configure the PATH (or PATHEXT) environment variable to do that and, at the same time, tell me that this is a Perl question and not a Windows question, because PATH configuration is pure Windows, nothing to do with Perl.
And yes, you can map the .pl extension to execute a script (without having to use the perl command), but this is definitely not the question asked in the OP, and this is again a pure Windows configuration issue, nothing to do with Perl itself.
| [reply] [d/l] |
C:\>perl -S foo.pl
And, no, the environment is not crippled, the environment is different!
Jenda
Enoch was right!
Enjoy the last years of Rome.
| [reply] [d/l] |