Apr 9, 2012, 8:40 AM
Post #2 of 2
The best answer is "none of the above". Without an extremely good reason to do otherwise, your common functions should be put in a module. The module should be included with the command like:
Re: [naven8] How to include 1 script in other script
[In reply to]
use Mylib::a.pm qw( func1 funct2 );
Refer to the "Perl Modules" section of perldoc perlmod for a template for creating a module.