perl inside batch files?
am 31.08.2005 21:38:53 von bradley.vernon
I don't program batch files much anymore, so I know that this is old
hat to most of you (well, maybe all of you).
I have come across a few batch files that contain perl scripts. I'm
not a perl expert, and back in the golden days of dos 1.0, we didn't
have perl scripts inside the batch file. So, I haven't any idea on
what they do or how to change them :)
Any pointers on where to find some decent documentation on how Windows
XP handles Perl scripts? The Windows documentation doesn't seem to
even address it, and the stuff on deja is way out of date (at least it
seems to be). So, I'd appreciate some help...
In particular, any guidance on what is processed by windows and what is
processed as a perl script? How does the batch processor know which is
which?
Regards, Brad
Re: perl inside batch files?
am 01.09.2005 01:01:37 von Matt Garrish
wrote in message
news:1125517133.346379.146370@f14g2000cwb.googlegroups.com.. .
>I don't program batch files much anymore, so I know that this is old
> hat to most of you (well, maybe all of you).
>
> I have come across a few batch files that contain perl scripts. I'm
> not a perl expert, and back in the golden days of dos 1.0, we didn't
> have perl scripts inside the batch file. So, I haven't any idea on
> what they do or how to change them :)
>
> Any pointers on where to find some decent documentation on how Windows
> XP handles Perl scripts? The Windows documentation doesn't seem to
> even address it, and the stuff on deja is way out of date (at least it
> seems to be). So, I'd appreciate some help...
>
> In particular, any guidance on what is processed by windows and what is
> processed as a perl script? How does the batch processor know which is
> which?
>
The cmd.exe shell runs all the statements in the file. If you use
batch-specific keywords and control structures, then they are interpreted as
such. If you enter the path to a perl script, however, it's exactly the same
as if you entered the path from the command line (if the .pl extension is
mapped to perl on your machine, the script is executed).
For more information see msdn:
http://www.microsoft.com/resources/documentation/windows/xp/ all/proddocs/en-us/batch.mspx
Matt
Re: perl inside batch files?
am 30.09.2005 06:52:56 von WD10
On Wed, 31 Aug 2005 12:38:53 -0700, bradley.vernon wrote:
> Any pointers on where to find some decent documentation on how Windows
> XP handles Perl scripts? The Windows documentation doesn't seem to
> even address it, and the stuff on deja is way out of date (at least it
> seems to be). So, I'd appreciate some help...
That would be something if the Windows documentation addressed Perl
scripts...