in reply to Re: Re: Using subroutine between scripts
in thread Using subroutine between scripts
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.