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

Moose and Exporter

by Anonymous Monk
on Dec 07, 2012 at 03:29 UTC ( #1007678=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I seldom try to break a perl module into parts because it is too big. But, I am trying to produce my first (family) of Perl modules as part of a bigger project to release to CPAN.

I am trying to break up the code into logical chunks. The two main interface modules are Moose. The other modules are mostly not Moose. I am working with Akima interpolants.

If I do

use Akima::Tools;
I get an error that it can't find _horner. If I do
use AkimaTools;
It finds the _horner function. Both versions have use Exporter.

I think I have all the other necessary changes accounted for. I know that there are Perl changes queued up from Debian, but updating packaged in the middle of a debug usually doesn't bring much joy.

What am I doing wrong?

Comment on Moose and Exporter
Select or Download Code
Re: Moose and Exporter
by Anonymous Monk on Dec 07, 2012 at 04:10 UTC

    Using Moose, setting some "types" in a separate module is best. What was working a week ago, is now also complaining about a function that Moose should be generating is not available.

    I will guess that both the original and this problem are related, but I am at a loss as to where the real problem lies. I hope this rings a bell with a Monk.

Re: Moose and Exporter
by tobyink (Abbot) on Dec 07, 2012 at 06:34 UTC
      Yes I am. I have it in the wrong place, eh? Thanks.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-12-25 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls