>>>>> "jason" == jason <[EMAIL PROTECTED]> writes:
jason> In the bryar distribution, i write out a bryar-newblog script that sets
up a
jason> blog in the current directory. There is a bug filed on rt.cpan.org
about this
jason> script's reliance on /usr/bin/perl.
jason> I am nearly always using a custom compiled perl in /usr/local/bin/perl
so this
jason> bites me as well. What i would like to do is be able to write this out
jason> according to whichever perl the user is building the distribution under.
jason> I see this at the top of prove:
jason> -----------------------------------------------------
jason> #!/usr/local/bin/perl
jason> eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
jason> if $running_under_some_shell;
jason> #!/usr/bin/perl -w
"prove" got "installed", which meant that the shbang line was rewritten
during installation to be your favorite Perl.
I believe what you are looking for can be obtained as:
use Config;
print $Config{startperl}, $/;
Or maybe "perlpath" instead. Look at both of them, see what you need.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!