From [email protected] (Steve Pacenka)
Path: canopus.cc.umanitoba.ca!newsflash.concordia.ca!utcsri!utnut!cs.utexas.edu!natinst.com!news.dell.com!swrinde!tank.news.pipex.net!pipex!news.mathworks.com!news.kei.com!travelers.mail.cornell.edu!newsstand.cit.cornell.edu!usenet
From: [email protected] (Steve Pacenka)
Newsgroups: comp.lang.perl.misc
Subject: Re: Bperl from Windows?
Date: Mon, 28 Aug 1995 23:48:12 GMT
Organization: Cornell University, NYS Water Resources Institute
Lines: 44
Sender: [email protected] (Verified)
Message-ID: <[email protected]>
References: <[email protected]>
Reply-To: [email protected]
NNTP-Posting-Host: 128
X-Newsreader: Forte Free Agent 1.0.82
[email protected] (David Efflandt) wrote:

>Does anyone know how to run a Big perl for DOS script (.BAT) from
>Windows?  I can go to the DOS prompt from Windows and run it, but when
>I try to set up a Windows icon it just flashes an error msg, too quick
>for me to read, and exits.

_DEFAULT.PIF gets used when there is no .pif specific to the batch file.

>I am looking for either an example of .PIF file settings or a typical
>command line string.  For example, do I have to load another copy of
>COMMAND.COM?

No, though you may get another command.com anyway.

Create a .pif with the batch file's name including the .bat extension under
"Program Filename".  Allow sufficient XMS memory for BigPerl to function, which
may be more than the default 1024K depending on how big the program and data
space are.  It's okay to run in a window, and probably the window should be set
to stay open on completion until the Perl script is debugged.  The p.m. icon can
then refer to the .pif file.


Your message inspired me to do an experiment (successful) about how to run a
Perl script in Windows 3.1 without using the batch file approach:

1. Create a perl.pif that runs perl.exe, allocates 3072K of XMS memory, runs in
a window, and leaves the DOS box window open when the script is complete so one
can see stdout.

2. In file manager, associate files with the .pl extension with the perl.pif
file.

This worked, in that files with .pl extensions are eligible to be attached to
program manager icons. They can also be double-clicked in file manager.  (I know
of no way to pass command line arguments or do redirection using this approach.)


-- Steve Pacenka   [email protected]
  Opinions are mine; no charge, no warranty
## Help show support for Randal Schwartz:
  status: [email protected]
  petition: http://www.ugcs.caltech.edu/~kluster/petition.html/


From [email protected] (David Efflandt)
Path: canopus.cc.umanitoba.ca!top.MTS.Net!worldlinx.com!romulus.ott.hookup.net!hookup!solaris.cc.vt.edu!news.mathworks.com!gatech!howland.reston.ans.net!news.sprintlink.net!in1.uu.net!xnet!news-admin
From: [email protected] (David Efflandt)
Newsgroups: comp.lang.perl.misc
Subject: Re: Bperl from Windows?
Date: Thu, 31 Aug 1995 00:53:59 GMT
Organization: XNet - A Full Service Internet Provider - (708) 983-6064
Lines: 28
Message-ID: <[email protected]>
References: <[email protected]> <[email protected]>
NNTP-Posting-Host: efflandt.xnet.com
X-Newsreader: Forte Free Agent 1.0.82
[email protected] (Steve Pacenka) wrote:
>Your message inspired me to do an experiment (successful) about how to run a
>Perl script in Windows 3.1 without using the batch file approach:

>1. Create a perl.pif that runs perl.exe, allocates 3072K of XMS memory, runs in
>a window, and leaves the DOS box window open when the script is complete so one
>can see stdout.

>2. In file manager, associate files with the .pl extension with the perl.pif
>file.

>This worked, in that files with .pl extensions are eligible to be attached to
>program manager icons. They can also be double-clicked in file manager.  (I know
>of no way to pass command line arguments or do redirection using this approach.)

Associating a .pl file with perl.pif works great.  And I don't even
have to go through the .BAT gyrations needed for running it in DOS.  I
can test the .pl file and just copy in the UNIX/CGI related functions
before transfering it to UNIX.

I thought that by clicking on the file and then File/Run in file
manager would be possible to add command line parameters, but that
does not seem to work.  I just have to use <STDIN> for test values.


Dave/Elgin, IL USA   [email protected]
http://www.xnet.com/~efflandt/


From [email protected] (Ken Bailey)
Newsgroups: comp.lang.perl.misc
Path: canopus.cc.umanitoba.ca!newsflash.concordia.ca!utcsri!utnut!cs.utexas.edu!swrinde!tank.news.pipex.net!pipex!lade.news.pipex.net!pipex!rbgkew.org.uk!kb00kg
From: [email protected] (Ken Bailey)
Subject: Re: Bperl from Windows?
X-Nntp-Posting-Host: lion
Message-ID: <[email protected]>
Sender: [email protected] (News Daemon)
Organization: The Royal Botanic Gardens, Kew, England
References: <[email protected]> <[email protected]>
Date: Thu, 31 Aug 1995 11:08:17 GMT
Lines: 56
[email protected] (Steve Pacenka) writes:

>[email protected] (David Efflandt) wrote:

>>Does anyone know how to run a Big perl for DOS script (.BAT) from
>>Windows?  I can go to the DOS prompt from Windows and run it, but when
>>I try to set up a Windows icon it just flashes an error msg, too quick
>>for me to read, and exits.
[snip]
>Create a .pif with the batch file's name including the .bat extension under
>"Program Filename".  Allow sufficient XMS memory for BigPerl to function, which
>may be more than the default 1024K depending on how big the program and data
>space are.  It's okay to run in a window, and probably the window should be set
>to stay open on completion until the Perl script is debugged.  The p.m. icon can
>then refer to the .pif file.
[snip]

And/Or create a pif for the perl.exe instead of a batch file and put a
single "?" in the command line options in the pif. This will open a
dialogue box for command line options when run. The file-manager
association ignores it tho' :(

( Shall we tell Bill Gates to stop work on '95 and come back and
finish 3.1 ? ;-)

heres my atrocious icon to complete your installation (apologies to Edie Freedman!)

---cut here----
begin 777 perl.ico
M   !  $ (" 0      #H @  %@   "@    @    0     $ !
M                              "   "     @(  @    (  @ " @
M@("  ,# P    /\  /\   #__P#_    _P#_ /__  #___\ B(=WB(B(B(B(
MB(B(B(B(B(B(>(B(B(B(B(B(B(B(B(C=W7W=W=W=W=W=W=W=W=W=B(AXB(B(
MB(B(B(B(B(B(B(B(>'=WB(=W=X=WB(AW=XB(B'=XAWB'B(AX>(B(AXB(B(AW
MB(AX>(B(B'B(B(>(B(B(>(B(>'B(B(AXB(B'B(B(B'B(B'AW=W=X>(B(AXB(
MB(AWB(AX=XB(>'>(B(>(B(AW=WB'>(=XAWAWB'>'B(B(B'AW=XB(=WB'>'=X
MAXB(B(B(B(B(B(B(B(B(B(>(B(B(B(B(B(B(B(B(B(B'B(B(B(B(B(B(B(B(
MB(B(=XB(B(B(B(B(B(B(B(B(B(>(B-W=W=W=W=W=!]W=W=W0#=V(B(B(B(B(
MB("(B' (B B(B(B(B(B(B(B B( ("(@(B(B(B(B(B(B(@(@ B B "(B(B(B(
MB(B(B(<(!X@ @'B(B(B(B(B(B(B " "(  !X>(B(B(B(B(    !P  <'"'B(
MB(B(B(< =W=W=W=W=PAXB(B(B(B =W=W=W=W=W<(>(B(B(B(@'=P '=W=W=W
M<'B(B(B(B !W"(!W=W=W=P"(B(B(B(@'=PB =W=W=W<(B(B(B(@'=W<(@ =W
M=W=P"(B(B(B(< 0'"(@'=W=W<(B(B(B(B(@'< B(@'=W<(B(B(B(B(B(  "(
MB(@ =P"(B(@
M
M
!

end



--
# Ken Bailey, Computer Department,   # Internet: [email protected] #
# The Royal Botanic Gardens, Kew,    #      Tel: +44 (0)181 332 5729    #
# Richmond, Surrey, TW9 3AE, England #      Fax: +44 (0)181 332 5278    #