good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Eval not trapping fatal errorby Ea (Chaplain) |
on Dec 07, 2015 at 12:26 UTC ( [id://1149570]=note: print w/replies, xml ) | Need Help?? |
Of course, you're right.
So, while other constant modules may die and be trapped with eval BLOCK, the constant pragma makes assignment a syntax error and needs to be trapped with eval EXPRESSION. Now I understand the line in the book the code in the BLOCK has to be valid Perl code to make it past the compilation phaseThanks
Sometimes I can think of 6 impossible LDAP attributes before breakfast.
http://act.yapc.eu/lpw2015/ It's that time of year again!
In Section
Seekers of Perl Wisdom
|
|