Skip to content

Instantly share code, notes, and snippets.

@2shortplanks
Created July 7, 2015 16:15
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 2shortplanks/9f423720ce87f6bf1ad7 to your computer and use it in GitHub Desktop.
Save 2shortplanks/9f423720ce87f6bf1ad7 to your computer and use it in GitHub Desktop.
Unexpected warnings re-enabled
#!/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