in reply to Using subroutine between scripts
And in the perl scripts that use it usesub my_silly_sub() { print "This is a silly sub"; } 1;
Depending on the need to use it across lots of scripts or a few, you may than want to move its location to an area common to your scripts. But I wouldn't make it a module until you find it spreading. But than again there are many opinions on what to do. Choose what is best for you.require "something.lib";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using subroutine between scripts
by ChrisR (Hermit) on Nov 07, 2003 at 16:30 UTC | |
by sgifford (Prior) on Nov 07, 2003 at 18:56 UTC | |
by Ninthwave (Chaplain) on Nov 07, 2003 at 18:10 UTC |