On Sun, Jun 03, 2012 at 10:53:08AM -0700, sono...@fannullone.us wrote: > On Jun 3, 2012, at 6:06 AM, Octavian Rasnita wrote: > > > but a user has only a single cron job so it is not such a big issue. > > And therein lies the rub. Why can't perlbrew do that for us > automatically? perlbrew switch XXX... and you're done! > > Your solution makes sense if you only change versions once a year when > Perl is upgraded, but my original inquiry was for testing purposes. If you > want to test all your scripts with different versions of Perl, making only > one change in perlbrew would be sooo nice. It does it for the command line - > why not for the shebang line? > > I've written the author to ask for this. For those who agree and would > like to do the same, here's his e-mail address: gu...@gugod.org
I'm sure gugod doesn't need a dozen people asking him the same thing. Why not wait until you get a reply? But I've read through this whole thread a couple of times and I'm still not sure what you are after, so I hope you've explained it better to him. Or perhaps that's just my problem. But your question: > It does it for the command line - why not for the shebang line? doesn't make a lot of sense to me. Are you asking why perlbrew can't make a shebang line that points to your system perl (wherever that might be) instead execute whatever perl you've "switch"ed to? If you are, I don't think you really want that (some important programs on your system may stop working). If not, what are you asking? Are you actually looking for this? $ perlbrew exec perl my_snazzy_program.pl -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/