Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Thank you boftx, but this sadly didn't work. new() is the most common constructor but in Perl constructor functions can be named differently AFAIR. MooX seems to have no new()... According to the documentation and the working examples, the MooX struct could be initialized by
but undef yields an error message and I don't know how a zero-element array could be specified in another way. So I did the init with an empty list which works except for the array variables. So maybe my question should be better asked as "how to initialize a zero-element array?" perhaps? In reply to Re^2: Novice problem: How to push a MooX Struct into a list?
by dissident
|
|