|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: special character questionby tobyink (Monsignor) |
| on Mar 03, 2013 at 23:25 UTC ( #1021544=note: print w/ replies, xml ) | Need Help?? |
|
perlvar tells you all you need to know about Perl's special variables. If a fatal error occurs within an eval call, the error message is stored in $@, and execution resumes from after the eval. So the code in your example calls a function called store and if that raises a fatal error, prints it to STDOUT.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||