I was testing that constants were really constants as suggested in a review by Neil Bowers and the following doesn't compile.
and the execution aborts with Can't modify constant item in scalar assignmentuse constant PI => 3.14; eval { PI = 3; }; warn "You can't round down PI to 3" if $@;
I've tried it on perls v5.16.3 and v5.18.4 on linux. Any suggestions on what is going on here? Have I missed something?
http://act.yapc.eu/lpw2015/ It's that time of year again!
In reply to SOLVED: Eval not trapping fatal error by Ea
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |