Geoffrey Young wrote:
+ my $shebang = length $Config{perlpath} < 62
+ ? "#!$Config{perlpath}\n"
+ : <<EOI;
+#!/usr/bin/perl
shouldn't this be something generic like
#!perl
instead of /usr/bin/perl? not even every unix installation has that.
+ eval 'exec $Config{perlpath} -S \$0 \${1+"\$@"}'
+ if \$running_under_some_shell;
+EOI
It should probably be:
$Config{'startperl'}
% perl -V:startperl
startperl='#!/usr/bin/perl';
startperl
From startperl.U:
This variable contains the string to put on the front of a perl
script to make sure (hopefully) that it runs with perl and not some shell.
Of course, that leading line must be followed by the classical perl idiom:
eval 'exec perl -S $0 [EMAIL PROTECTED]' if $running_under_some_shell; to guarantee
perl startup should the shell execute the script. Note that this magic
incatation is not understood by csh.
What do you think?
--
_____________________________________________________________
Stas Bekman mailto:[EMAIL PROTECTED] http://stason.org/
MailChannels: Assured Messaging(TM) http://mailchannels.com/
The "Practical mod_perl" book http://modperlbook.org/
http://perl.apache.org/ http://perl.org/ http://logilune.com/