in reply to Re: Eval not trapping fatal error
in thread SOLVED: Eval not trapping fatal error
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
http://act.yapc.eu/lpw2015/ It's that time of year again!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Eval not trapping fatal error
by Corion (Patriarch) on Dec 07, 2015 at 12:34 UTC |