unix - Portable shebang line -


  #! / Usr / bin / perl  

This is the Shebang line for many scripts I am writing lately.

The path of binary seems hard coding as if it can cause some problems. For example, if Pearl is installed on / some_else / bin in one of my users, then replace them with all shabangs. Will happen.

I have seen some tools that automatically replace Shebangs, I am wondering if something is simple.

  #! / Usr / bin / env perl  

Comments