Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Moose Role to include Use statements

by Cagao (Monk)
on Feb 21, 2011 at 16:13 UTC ( [id://889414]=note: print w/replies, xml ) Need Help??


in reply to Re: Moose Role to include Use statements
in thread Moose Role to include Use statements

Ahhh true, we're being strict about what is allowed in this module.

One included module with imported method didn't work when in the Role file anyway so had to abort that approach, and you're right, only things related to that Role should be in there anyway.

Was just looking for the most-Moose way of doing it.

  • Comment on Re^2: Moose Role to include Use statements

Replies are listed 'Best First'.
Re^3: Moose Role to include Use statements
by stvn (Monsignor) on Feb 21, 2011 at 18:04 UTC
    One included module with imported method didn't work when in the Role file anyway so had to abort that approach

    This is because Moose recognizes the difference between an imported function and a method. That and roles don't have an import method (and never should IMO anyway).

    -stvn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-19 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found