Portable shebang line

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-05-17T00:20:52Z Indexed on 2010/05/17 0:30 UTC
Read the original article Hit count: 516

Filed under:
|
|
#!/usr/bin/perl

This is the shebang line to a lot of scripts I'm writing lately.

Hard coding the path of the binary seems like it could create some problems. For instance, if one of my users has Perl installed at /something_else/bin then they'd have to change all the shebangs.

I've seen some tools that will automatically replace the shebangs, but I'm wondering if there is something simpler.

© Stack Overflow or respective owner

Related posts about unix

Related posts about scripting