http://www.perlmonks.org?node_id=1015209


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