in reply to Moo error message not understood
Lib::Book->new happens before has isbn happens ...
basically because that is what you typed, at the time new is called the class doesn't have isbn yet
If you add BEGIN { ... } around package Lib::Book, all that should happen before Lib::Book->new as you expect
Don't know where all this is documented, maybe Simple Module Tutorial ... maybe its also discussed in tyes template at (tye)Re: Stupid question (and see one discussion of that template at Re^2: RFC: Creating unicursal stars
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moo error message not understood (BEGIN block missing)
by davies (Monsignor) on Jan 17, 2014 at 19:35 UTC | |
by Anonymous Monk on Jan 17, 2014 at 20:20 UTC | |
by Anonymous Monk on Jan 17, 2014 at 20:34 UTC |