Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by kcott (Canon)
on Jan 24, 2013 at 18:59 UTC ( #1015209=note: print w/replies, xml ) Need Help??


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

G'day bgu,

I'd suggest using the default option with the has attribute - see Moose - EXPORTED FUNCTIONS for details.

Side issue: it looks like you're missing a $ before the second Libr in:

$Libr->MoveBook(Libr->PopBook);

-- Ken

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2016-08-31 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.