Created a package and wanted to use signatures.
package Foo;
use strict;
use warnings;
use feature qw(signatures);
no warnings qw(experimental::signatures);
use Moose;
has bar => ( is => 'ro', isa => 'Str' );
sub boom ($self, $stuff) {
print "$stuff\n";
}
1;
Test it:
perl -wc Foo.pm
The signatures feature is experimental at ./Foo.pm line 11.
What's going on? I thought the "no warnings" pragma would suppress that warning!
use feature qw(signatures);
can be used in lieu ofuse feature qw(signatures); no warnings qw(experimental::signatures);
– Befittinguse experimental qw(signatures)
@Befitting ;-) – Haymes