Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Setting #! path using environment

by moritz (Cardinal)
on Jul 01, 2009 at 09:08 UTC ( [id://776360] : note . print w/replies, xml ) Need Help??

in reply to Setting #! path using environment

You can use
#!/usr/bin/env perl

and manipulate your PATH environment variable so that the first perl found in PATH is the one you want your scripts to use.