On Jun 3, 2012, at 11:18 AM, Paul Johnson wrote: > I'm sure gugod doesn't need a dozen people asking him the same thing.
If I'm the only one who wants this, then it won't be a priority for him - and it shouldn't be. However if enough people want it, maybe he'll do it. >> It does it for the command line - why not for the shebang line? > doesn't make a lot of sense to me. All I'm after is the ability to use a shebang line that will always point to the currently selected version of Perl that I've chosen by the perlbrew switch command. If I use #!/usr/bin/env perl, my system Perl gets used - no matter what perlbrew is set to. If I hard-code a perlbrew installed version of Perl, then that particular version gets used. I'd like to be able to use some generic shebang line, something like #!~/perl5/perlbrew/bin/current, and then that script would use the currently selected version of Perl. Now when I change versions with perlbrew, I don't have to change any shebang line. > I don't think you really want that (some important programs on your system > may stop working). What I'm asking for would not interfere with any system files. > Are you actually looking for this? > $ perlbrew exec perl my_snazzy_program.pl Nope. Let's use my shopping cart script as an example. Running MAMP on my Mac, and using a browser to access the script, I want to select different versions of Perl to test it with, using perlbrew, to make sure it will work no matter what version of Perl is running. I referenced this page yesterday where someone asked pretty much the same thing last year: https://github.com/gugod/App-perlbrew/issues/70 Marc -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/