Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Can't call method "MoveBook" on an undefined value

by davido (Archbishop)
on Jan 24, 2013 at 18:45 UTC ( #1015206=note: print w/ replies, xml ) Need Help??


in reply to Can't call method "MoveBook" on an undefined value

You have a lot of options: BUILD, BUILDARGS, or possibly even "lazy => ..., builder => ..."

At first blush I would say it could be a job for a BUILD routine, but would prefer to see more before saying for certain. If possible I would favor doing it in the attribute's declaration (again, possibly builder).

See Moose::Manual::Construction, and Moose::Manual::Attributes for more explanation.


Dave


Comment on Re: Can't call method "MoveBook" on an undefined value
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-08-30 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls