[sf-perl] dynamic #! line
David Fetter
david at fetter.org
Mon Mar 23 17:39:58 PDT 2009
On Mon, Mar 23, 2009 at 05:36:19PM -0700, Matthew Lanier wrote:
> hey folks-
>
> i'm in a situation where I may need to set #! on a perl script at
> run time via the environment. I know that's technically possible,
> but am unsure what hidden gotchas may result. Any thoughts on that?
Well, you could use the old
#!/usr/bin/env perl
trick. The gotcha is just the usual one about anything that radically
changes behavior based on hard-to-reproduce-later stuff like
environment variables.
Cheers,
David.
--
David Fetter <david at fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter at gmail.com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
More information about the SanFrancisco-pm
mailing list