szabgab has asked for the wisdom of the Perl Monks concerning the following question:
With this module:
this script:package Person; use Moo; has name => (is => 'rw', required => 1); 1;
generates this error:use Person; my $anonymous = Person->new;
Is there a way to get better error messages from Moo? Maybe with the correct filename and line number of the caller?Missing required arguments: name at (eval 13) line 30.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Better error messages from Moo?
by poj (Abbot) on Jun 15, 2013 at 13:45 UTC | |
Re: Better error messages from Moo?
by tobyink (Canon) on Jun 15, 2013 at 15:55 UTC | |
by szabgab (Priest) on Jun 15, 2013 at 17:13 UTC | |
by Anonymous Monk on Jun 15, 2013 at 17:43 UTC |
Back to
Seekers of Perl Wisdom