Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

PAR's pp on a win32 batch file problem

by zakzebrowski (Curate)
on Dec 02, 2004 at 15:22 UTC ( #411788=perlquestion: print w/replies, xml ) Need Help??
zakzebrowski has asked for the wisdom of the Perl Monks concerning the following question:

I am writing a bunch of perl applications which I'm using PAR's pp to compile for people that don't have perl installed. (Aside: A simple,small and free web server that works great is tinyweb by ritlabs.) The issue I have is that I have a simple win32 batch file that calls pp multiple times. However, once a single pp command is executed, the script terminates. Any idea how to proceed? (In the example below, index.exe is created, but not index2.exe. If you type the commands at a cmd prompt, index2.exe is built sucessfully...)
Win32 batch file:
pp -o index.exe -M CGI -M DBI -M DBD::SQLite pp -o index2.exe -M CGI -M DBI -M DBD::SQLite
BTW, using windows XP service pack 2, activestate perl 5.8.4.

Update: Answered by fglock, thanks!

Zak - the office

Replies are listed 'Best First'.
Re: PAR's pp on a win32 batch file problem
by fglock (Vicar) on Dec 02, 2004 at 15:37 UTC
      Thanks! Awsome! I didn't know about the call command.
      From help call:
      F:\>help call Calls one batch program from another. CALL [drive:][path]filename [batch-parameters] batch-parameters Specifies any command-line information required b +y the batch program.

      Zak - the office
Re: PAR's pp on a win32 batch file problem
by Anonymous Monk on Dec 03, 2004 at 09:13 UTC
    perl -S pp -o index.exe -M CGI -M DBI -M DBD::SQLite perl -S pp -o index2.exe -M CGI -M DBI -M DBD::SQLite

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://411788]
Approved by gellyfish
choroba's discovered two instances of a weird animal in the code at work: \@$var
[Eily]: hum, tied scalar, generates a new array when derefed ? :D
[Corion]: choroba: Ah, when doing a shallow copy, I prefer [ @$var ] - I think \@$var might return the same reference instead of a reference to a fresh copy

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2017-09-26 08:43 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.