what other conditions except of 'die' can eval trap?
Depends what you count as "except of 'die'". It will trap other run-time errors which would be fatal such as de-referencing non-references or failures of require, etc.
The documentation for eval is pretty extensive. All the answers you seek should be there.
And autodie does consider 'undef' as an exception?
Not explicitly. See autodie.
here's also a Fatal module I think.What is it's difference with 'autodie'?
You haven't read the docs for Fatal either then?
Fatal has been obsoleted by the new autodie pragma. Please use autodie in preference to Fatal. autodie supports lexical scoping, throws real exception objects, and provides much nicer error messages.
🦛
In reply to Re^3: When to use eval
by hippo
in thread When to use eval
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |