Skip to content

Instantly share code, notes, and snippets.

@kfly8
Last active June 2, 2019 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kfly8/129b062df0ccebdfe6b455cd8498e51b to your computer and use it in GitHub Desktop.
Save kfly8/129b062df0ccebdfe6b455cd8498e51b to your computer and use it in GitHub Desktop.
use warnings;
CHECK {
warn "CALL check"
}
use warnings;
BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x51\x55\x55\x55\x55\x55\x55"}
do './check.pl';
use warnings;
no warnings qw(numeric);
do './numeric.pl';
# Argument "2:" isn't numeric in addition (+) at ./numeric.pl line 3.
# 5 at ./numeric.pl line 4.
use warnings;
no warnings qw(void);
do './check.pl';
# => Too late to run CHECK block at ./check.pl line 6.
use warnings;
my $a = '2:' + 3;
warn $a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment