Hi ~wren, you wrote... > Sorry if this is off-topic, but I seem to recall > sometime fairly recently (less than a year, more than > a few weeks) someone mentioned a way to "autofind" the > path to perl on the shebang line so you don't need to > hardcode the path. I can't seem to find the post in > the archives. Does any one remember the method or what > thread it might have been mentioned in?
That would probably have been the use of the "env" utility: instead of #!/usr/bin/perl or similar you make the first line of your scripts read #!/usr/bin/env perl and it'll find the first perl in your environment. See http://www.informit.com/articles/article.asp?p=29328&seqNum=3 for some more info. Cheers, Paul