Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi there fellow monks, I've been experiencing a problem for some time now and have decided to seek some external help. I'm writing a perl tool here at my job, using among other modules, DBD-sqlite. I intended to turn it into an EXE as soon as development was stable enough to enter production phase, so my collegues wouldn't need to install Perl on their PCs. Unfortunatly, I'm hitting a wall with my EXEs not returning to DOS prompt once finished, as the PP/PAR duo doesn't seem able to clean the temporary files it created. This behavior is only happening if I 'use DBI'. It also doesn't happen when I don't use pp.exe's -C (autoclean) option. But if I don't use that option, then the generated exe will not clean files in %TEMP% directory. Here's an example that you probably can reproduce if, like me, you're using : - activestate perl 5-8-6 multi-thread - pp 0.12 / PAR 0.87 - DBI 1.48
use DBI ; print "quitting\n" ;
'compiling' it with the following command :
pp -C -o tstpp.exe
It generates a .EXE that only terminates with Ctrl-C. (once again, not using '-C' option gives a good EXE but pollutes windows temporary directory, and I can't clean it from inside the script). Has anyone encountered and managed to solve that problem ? Or will I have to forget about autoclean option, run my .EXE from a .BAT which will clean the directory after perl returns ? Thanks a lot in advance for your answers, and sorry if my english's not that good, it's not my mother tongue.

In reply to DBI and PP not behaving... by Baramin

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2021-10-22 15:57 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (85 votes). Check out past polls.