Charles K. Clarkson wrote:
IMO, the easiest thing to do in the log run is to change
"stuff.pl" into a module called (perhaps) "stuff.pm". The you
can "use" it. You might end up with something like this:
package stuff;
require Exporter;
@ISA = qw(Exporter);
@EXPORT_OK = qw( foo );
sub foo {
re
Daniel Kasak <[EMAIL PROTECTED]> wrote:
: I have a main script file, a package in a separate 'package_name.pm'
: file and a file 'stuff.pl' that contains functions that both the
: main script and the package need to use.
:
: I've tried adding:
:
: require "stuff.pl";
:
: to both the main script
Hi all.
I have a main script file, a package in a separate 'package_name.pm'
file and a file 'stuff.pl' that contains functions that both the main
script and the package need to use.
I've tried adding:
require "stuff.pl";
to both the main script and the package. I can then call functions in
'st