Created
July 7, 2015 16:15
-
-
Save 2shortplanks/9f423720ce87f6bf1ad7 to your computer and use it in GitHub Desktop.
Unexpected warnings re-enabled
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
#!/usr/bin/perl | |
# at the top of all of our code | |
use ourperl; | |
# this does this | |
# | |
# use Import::Into; | |
# use strict; | |
# use warnings; | |
# use experimental (); | |
# sub import { | |
# my $caller_level = 1; | |
# strict->import::into($caller_level); | |
# warnings->import::into($caller_level); | |
# experimental->import::into( $caller_level, 'signatures', 'postderef' ); | |
# | |
# } | |
# then we do this, which turns back on the warnings | |
use Mojolicious::Lite; | |
# then this unexpectedly gives us the warning: | |
# The signatures feature is experimental at test.pl line 24, <DATA> line 2231. | |
sub foo($bar) { | |
say $bar; | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment