hi perl monks,

i'm trying to package a script plus some modules to a .par-file. everything works fine, except when one of the classes uses Class:DBI as a base class. then running the script just hangs and uses CPU.
here are some details:

$ cat partest.pl #!/usr/bin/perl use strict; use warnings; use ParTest; $ cat partest/ParTest.pm package ParTest; use strict; use warnings; use base 'Class::DBI'; 1; $ pp -p partest.pl -o partest.par -I partest $ cat par_run.pl #!/usr/bin/perl use strict; use warnings; use PAR 'partest.par'; use ParTest; print "loaded ParTest: $INC{'ParTest.pm'}\n"; END { print "Ending $0\n" } $ perl par_run.pl loaded ParTest: /tmp/par-tina/cache-...../0f313bdd.pm Ending par_run.pl <hangs forever using 99% CPU>
looking into partest.par shows me that Class/DBI.pm and other modules have been packaged.
i didn't find similar problems at google or super search. i'm using Class::DBI 0.96 and PAR 0.85

has anyone run into the same problem? otherwise i'll write to the mailing list.

update: creating an executable (pp partest.pl -o partest.plx -I partest) works fine, btw
update2: after trying out several versions - using PAR 0.79 (only for the "use PAR 'file.par'" part) works. i think i'll write autrijus


In reply to PAR and use base 'Class::DBI' by tinita

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.