Re: Calling subroutines from another file

2004-06-09 Thread Daniel Kasak
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

RE: Calling subroutines from another file

2004-06-08 Thread Charles K. Clarkson
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

Calling subroutines from another file

2004-06-08 Thread Daniel Kasak
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