in reply to Persistant Perl arguments ( 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:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Persistant Perl arguments ( pperl )
by Anonymous Monk on Apr 28, 2008 at 17:59 UTC | |
by mr_mischief (Monsignor) on Apr 28, 2008 at 19:03 UTC |