in reply to Re: how to invoke a different perl interpreter based on user ENV variable
in thread how to invoke a different perl interpreter based on user ENV variable

This solution has the following serious shortcomings, listed in order of increasing seriousness:
  1. It isn't in a BEGIN block, so will not protect you from trying to load modules that aren't there.
  2. You lose @ARGV.
  3. It gets into an endless loop - you need to test whether you have the *right* version of Perl, else when you get the right one, you will keep on thinking that you have the wrong one and exec again.
  • Comment on Re: Re: how to invoke a different perl interpreter based on user ENV variable

Replies are listed 'Best First'.
Re^3: how to invoke a different perl interpreter based on user ENV variable
by Anonymous Monk on Feb 16, 2004 at 17:01 UTC

    I just finished realizing #2 and #3 myself and reposted to fix those. My reposted version was enclosed within a BEGIN block to begin with but I removed it because I didn't really see the need for it. Thanks for mentioning that one for me :)