summaryrefslogtreecommitdiff
path: root/lib/feature.pm
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-09-29 22:39:37 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-09-30 00:01:26 -0700
commitf1d34ca8c42df1cea97652592d84d9a587312c74 (patch)
treedf0c93b60f39f6124adc5e0abd9a4459c4d23b38 /lib/feature.pm
parentf6abc0d6b4abeb6a99d7f5da7c61f368af49fc2e (diff)
downloadperl-f1d34ca8c42df1cea97652592d84d9a587312c74.tar.gz
Use two colons for lexsub warning
Diffstat (limited to 'lib/feature.pm')
-rw-r--r--lib/feature.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/feature.pm b/lib/feature.pm
index f585f16424..5a56a90a10 100644
--- a/lib/feature.pm
+++ b/lib/feature.pm
@@ -237,7 +237,7 @@ change in future versions of Perl. For this reason, F<feature.pm> will
warn when you enable the feature, unless you have explicitly disabled the
warning:
- no warnings "experimental:lexical_subs";
+ no warnings "experimental::lexical_subs";
This enables declaration of subroutines via C<my sub foo>, C<state sub foo>
and C<our sub foo> syntax. See L<perlsub/Lexical Subroutines> for details.
@@ -382,7 +382,7 @@ sub __common {
$^H |= $hint_uni8bit if $name eq 'unicode_strings';
if ($experimental{$name}) {
require warnings;
- warnings::warnif("experimental:$name",
+ warnings::warnif("experimental::$name",
"The $name feature is experimental");
}
} else {