Created
August 8, 2012 20:26
-
-
Save tobyink/3298347 to your computer and use it in GitHub Desktop.
compile-time versus run-time fatal warnings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use 5.010; | |
use warnings FATAL => qw(all); | |
eval { "x" + 1 } or warn "Caught error: $@\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use 5.010; | |
use warnings FATAL => qw(all); | |
eval { $x =+ 2 } or warn "Caught error: $@\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment