I also often put a shebang in my libraries. It can be helpful to text editors in figuring out what kind of file it is. Emacs, for example, can infer the file type by looking at the first few characters. If I create a Perl library starting with a shebang line, Emacs will open it in Perl mode, regardless of the filename. I've been doing this for years and have never had any problems with it.
| [reply] |
No not really but I was just taught you don't need the shebang line so I never put it in. I personally see the shebang line as the beginning of a script so I leave it out of libraries. I would ask other monks if there are any problems with including it but I can't think of any.
"No matter where you go, there you are." BB
| [reply] |