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 'stuff.pl' from the main script, but when I try from the package, I get:

*** Undefined subroutine &package_name::function_name called at package_name.pm line 545.

So Perl is only looking inside the package for functions, it that right? How do I tell it to look outside the package for functions?

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to