Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Module Confusion?

by themage (Friar)
on Dec 07, 2006 at 11:40 UTC ( #588299=note: print w/ replies, xml ) Need Help??


in reply to Module Confusion?

Hi Ronnie,

Once you already have the use ACC_Various qw(... update_report ...); line in your use, you don't need to prefix the update_report call with the ACC_Various.

Anyway, you are calling it the wrong way (I presume it was a typo, as it would give you a syntax error as is - at least in perl 5.8). To call ACC_Various with the prefix you can do it using two diferent ways:
ACC_Various::update_report(...); &ACC_Various::update_report(...);
As you have the use importing the update_report, you can also call it with:
update_report(...);
Update: As the error message is about Undefined subroutine &ACC_Heather::update_report I would say that your use is not doing the expected, or that you are not adding update_report to our @EXPORT or our @EXPORT_OK in ACC_Various.

Hope this clarifies your questions.

TheMage
Talking Web

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://588299]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2016-07-01 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (405 votes). Check out past polls.