From the docs for PPerl:
$ pperl <perl params> -- <pperl params> scriptname <script params>

I think you need this:

#!/usr/bin/perl -- --prefork 25 print "\n\nHELLO\n";

You need to tell pperl that your perl options are through and your pperl options have started. The '--' by itself should do that.

Update:

I got PPerl to install (had to play some ndbm/gdbm games with the makefile, though), and tested this theory. You do need the separator between the perl options and the pperl options, even if you have no perl options to name. The pperl arguments seem to work with either the equal sign or a space.

Update 2: You're right, and I did run it accidentally as perl instead of pperl on the sheband line. When I try, I get the same thing you do. Yet /usr/local/bin/pperl --prefork=25 foo works from the command line, with a Perl program in file "foo". Perhaps PPerl just doesn't support working from the shebang line, and must be invoked on a program that's in a file.


In reply to Re: Persistant Perl arguments ( pperl ) by mr_mischief
in thread Persistant Perl arguments ( pperl ) by Anonymous Monk

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.