On Wed, 20 Aug 2003, Nick Ing-Simmons wrote:
> Billy N. Patton <[EMAIL PROTECTED]> writes:
> >I looked through man pages and read about overloading colon definitions.
> >I'm already doing that. But MakeMaker spits out :
> >FIXIN = $(PERLRUN) "-MExtUtils::MY" \
> > -e "MY->fixin(shift)"
>
> So you want to over-ride PERLRUN so that it uses the perl you want
> to apear in #! line rather than the one with the links resolved.
> The easy way to do that it modify Config.pm to have "right" path-to-perl
> (or get your admin to do that right in the 1st place.)
>
> But assuming you need to do this in Makefile.PL
> you need something like:
>
> package MY;
> sub constants
> {
> local $_ = shift->SUPER::constants(@_);
> s#/apps/perl/5.8.0/bin/perl#/usr/local/bin/perl#g;
> return $_;
> }
>
> But you probably want to generalize the "from" part of subsitute.
>
That is the approach which I was driving at.
Thanks for the example, Nick!