We don't bite newbies here... much | |
PerlMonks |
Module Confusion?by Ronnie (Scribe) |
on Dec 07, 2006 at 11:25 UTC ( [id://588294]=perlquestion: print w/replies, xml ) | Need Help?? |
Ronnie has asked for the wisdom of the Perl Monks concerning the following question:
Hello ther inmates can you point a very confused monk in the right direction please?! I've written a new Perl script that loads 2 of my own in-house written modules - The problem is that the ACC_Heather module uses some of the subroutines contained within ACC_Various. I thought that this would be simple enough - it may well be but I'm probably a lot simpler!! I put a use ACC_Various inside the ACC_Heather module :- thinking that if I prefixed every call of an ACC_Various subroutine within ACC_Heather with ACC_Various:: everything would be fine. Nope!! I got that wrong! The very first call to update report results in the following error :- Am I missing something very obvious or can/should this not be done? See what I mean about confusion! (Okay I admit it I made a typo in a reply!) I've tried all of the following :- &ACC_Heather::update_report(....) ACC_Heather::&update_report(....) &ACC_Various::update_report(....) ACC_Various::update_report(....) All resulting in the same error. I use ACC_Various in lots of other scripts but this is the first time I've tried using it within another module. The EXPORT etc of ACC_Various is :- Any other suggestions? I could be really boring and copy all of the subroutines from ACC_Various into ACC_Heather but .... I'd learn nothing. Thanks in advance. ************************************************************ Sorry guys you're dealing with an idiot!!!! Officially! * * When I made the changes to my code I wasn't in the * * directory I thought I was and as a result I was using * * the original failing code all the time!!! * * * * I'd shoot myself but I'd probably MISS!!!!! * ***********************************************************
Back to
Seekers of Perl Wisdom
|
|