I use the pl2bat utility that comes with ActivePerl.  For foo.pl, "pl2bat
foo.pl" will encapsulate the contents of foo.pl in a batch file without
altering foo.pl.

Michael

> or going a step further, create a .bat file with:
> c:\perl\bin\perl.exe -w c:\scripts\myscript.pl
>
> By not using @echo off, you'll also see the command itself appear on your
> screen.
>
> > -----Original Message-----
> > From: Bill Duncan [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, March 18, 2001 9:29 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Running Perl script
> >
> >
> > doskey foo=c:\perl\bin\perl.exe -w c:\scripts\myscript.pl
> >
> > Load doskey and this line above in autoexec.bat and anytime
> > you type foo it
> > will execute your script.
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > [EMAIL PROTECTED]
> > Sent: Friday, March 16, 2001 5:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Running Perl script
> >
> >
> > Is there anyway I can run a perl script without typing perl
> > in front of it
> > and
> > without typing the extension .pl.
> >
> > Thanks in advance


_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to