Nigel Peck wrote:
The exported routines work fine in my main script, but when I try to use a routine in one module from another module I get "Undefined subroutine".
I believe you hit 'circular dependencies'. While perl will actually let you do this, its bad style in any language. You should move common subroutines to an additional module and it it in the others. Just don't use the others in this new.

Also, don't forget that things in EXPORT_OK(some_sub)
need this in the target file

use xxx:module_2 q(some_sub);
--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Reply via email to