use autodie;
use strict;
use warnings;
-no warnings 'experimental::aggref';
+no warnings 'experimental::autoderef';
use File::Find;
use ExtUtils::MM_Unix;
use version;
use feature (sprintf(":%vd", $^V)); # to avoid relying on the feature
# logic to add CORE::
-no warnings 'experimental::aggref';
+no warnings 'experimental::autoderef';
use B::Deparse;
my $deparse = new B::Deparse;
<a,>;
####
# [perl #91008]
-# CONTEXT no warnings 'experimental::aggref';
+# CONTEXT no warnings 'experimental::autoderef';
each $@;
keys $~;
values $!;
print "# not in Perl itself.\n";
}
if ($Okay{$test_num} && grep { $_ == $test_num } @problematical_tests) {
- no warnings 'experimental::aggref';
+ no warnings 'experimental::autoderef';
# Round to nearest .1%
my $percent_fail = (int(.5 + (1000 * scalar(keys $Problem{$test_num})
/ scalar(@Locale))))
# Warnings Categories added in Perl 5.019
- 'experimental::aggref'=> 112,
+ 'experimental::autoderef'=> 112,
'experimental::postderef'=> 114,
'syscalls' => 116,
);
'exec' => "\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [7]
'exiting' => "\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [3]
'experimental' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x55\x05", # [51..57]
- 'experimental::aggref'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01", # [56]
+ 'experimental::autoderef'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01", # [56]
'experimental::lexical_subs'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00", # [52]
'experimental::lexical_topic'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00", # [53]
'experimental::postderef'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04", # [57]
'exec' => "\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [7]
'exiting' => "\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [3]
'experimental' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xaa\x0a", # [51..57]
- 'experimental::aggref'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02", # [56]
+ 'experimental::autoderef'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02", # [56]
'experimental::lexical_subs'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00", # [52]
'experimental::lexical_topic'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00", # [53]
'experimental::postderef'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08", # [57]
scalar(kid);
/* diag_listed_as: push on reference is experimental */
Perl_ck_warner_d(aTHX_
- packWARN(WARN_EXPERIMENTAL__AGGREF),
+ packWARN(WARN_EXPERIMENTAL__AUTODEREF),
"%s on reference is experimental",
PL_op_desc[type]);
}
/* if treating as a reference, defer additional checks to runtime */
if (o->op_type == ref_type) {
/* diag_listed_as: keys on reference is experimental */
- Perl_ck_warner_d(aTHX_ packWARN(WARN_EXPERIMENTAL__AGGREF),
+ Perl_ck_warner_d(aTHX_ packWARN(WARN_EXPERIMENTAL__AUTODEREF),
"%s is experimental", PL_op_desc[ref_type]);
return o;
}
=item each on reference is experimental
-(S experimental::aggref) C<each> with a scalar argument is experimental and
+(S experimental::autoderef) C<each> with a scalar argument is experimental and
may change or be removed in a future Perl version. If you want to take
the risk of using this feature, simply disable this warning:
- no warnings "experimental::aggref";
+ no warnings "experimental::autoderef";
=item elseif should be elsif
=item keys on reference is experimental
-(S experimental::aggref) C<keys> with a scalar argument is experimental and
+(S experimental::autoderef) C<keys> with a scalar argument is experimental and
may change or be removed in a future Perl version. If you want to take
the risk of using this feature, simply disable this warning:
- no warnings "experimental::aggref";
+ no warnings "experimental::autoderef";
=item Label not found for "last %s"
=item pop on reference is experimental
-(S experimental::aggref) C<pop> with a scalar argument is experimental and
+(S experimental::autoderef) C<pop> with a scalar argument is experimental and
may change or be removed in a future Perl version. If you want to take
the risk of using this feature, simply disable this warning:
- no warnings "experimental::aggref";
+ no warnings "experimental::autoderef";
=item POSIX class [:%s:] unknown in regex; marked by S<< <-- HERE in m/%s/ >>
=item push on reference is experimental
-(S experimental::aggref) C<push> with a scalar argument is experimental and
+(S experimental::autoderef) C<push> with a scalar argument is experimental and
may change or be removed in a future Perl version. If you want to take
the risk of using this feature, simply disable this warning:
- no warnings "experimental::aggref";
+ no warnings "experimental::autoderef";
=item Quantifier follows nothing in regex; marked by S<< <-- HERE in m/%s/ >>
=item shift on reference is experimental
-(S experimental::aggref) C<shift> with a scalar argument is experimental
+(S experimental::autoderef) C<shift> with a scalar argument is experimental
and may change or be removed in a future Perl version. If you want to
take the risk of using this feature, simply disable this warning:
- no warnings "experimental::aggref";
+ no warnings "experimental::autoderef";
=item shm%s not implemented
=item splice on reference is experimental
-(S experimental::aggref) C<splice> with a scalar argument is experimental
+(S experimental::autoderef) C<splice> with a scalar argument is experimental
and may change or be removed in a future Perl version. If you want to
take the risk of using this feature, simply disable this warning:
- no warnings "experimental::aggref";
+ no warnings "experimental::autoderef";
=item Split loop
=item unshift on reference is experimental
-(S experimental::aggref) C<unshift> with a scalar argument is experimental
+(S experimental::autoderef) C<unshift> with a scalar argument is experimental
and may change or be removed in a future Perl version. If you want to
take the risk of using this feature, simply disable this warning:
- no warnings "experimental::aggref";
+ no warnings "experimental::autoderef";
=item Unsuccessful %s on filename containing newline
=item values on reference is experimental
-(S experimental::aggref) C<values> with a scalar argument is experimental
+(S experimental::autoderef) C<values> with a scalar argument is experimental
and may change or be removed in a future Perl version. If you want to
take the risk of using this feature, simply disable this warning:
- no warnings "experimental::aggref";
+ no warnings "experimental::autoderef";
=item Variable "%s" is not available
|
+- experimental --+
| |
- | +- experimental::aggref
+ | +- experimental::autoderef
| |
| +- experimental::lexical_subs
| |
use 5.008;
use warnings;
use warnings FATAL => 'all';
-no warnings 'experimental::aggref';
+no warnings 'experimental::autoderef';
use Text::Wrap qw(wrap);
use Data::Dumper;
$Data::Dumper::Useqq= 1;
[ 5.017, DEFAULT_ON ],
'experimental::postderef' =>
[ 5.019, DEFAULT_ON ],
- 'experimental::aggref' =>
+ 'experimental::autoderef' =>
[ 5.019, DEFAULT_ON ],
}],
@h{gmtime 0};
@h{eval ""};
{
- no warnings 'experimental::aggref';
+ no warnings 'experimental::autoderef';
@h{each $foo} if 0;
@h{keys $foo} if 0;
@h{values $foo} if 0;
@h[gmtime 0];
@h[eval ""];
{
- no warnings 'experimental::aggref';
+ no warnings 'experimental::autoderef';
@h[each $foo] if 0;
@h[keys $foo] if 0;
@h[values $foo] if 0;
shift $fred;
unshift $fred;
splice $fred;
-no warnings 'experimental::aggref' ;
+no warnings 'experimental::autoderef' ;
push $fred;
pop $fred;
shift $fred;
keys $fred;
values $fred;
each $fred;
-no warnings 'experimental::aggref' ;
+no warnings 'experimental::autoderef' ;
keys $fred;
values $fred;
each $fred;
{
my %h = 'a'..'b';
my @i = \%h;
- no warnings 'syntax', 'experimental::aggref';
+ no warnings 'syntax', 'experimental::autoderef';
my ($k,$v) = each %i[0];
is $k, 'a', 'key returned by each %array[ix]';
is $v, 'b', 'val returned by each %array[ix]';
{
my %h = 'a'..'b';
my %i = (foo => \%h);
- no warnings 'syntax', 'experimental::aggref';
+ no warnings 'syntax', 'experimental::autoderef';
my ($k,$v) = each %i{foo=>};
is $k, 'a', 'key returned by each %hash{key}';
is $v, 'b', 'val returned by each %hash{key}';
}
is( join(':',@x), '1:2:3:1:2:3:4', 'pop intuiting @ on array');
-no warnings 'experimental::aggref';
+no warnings 'experimental::autoderef';
# test for push/pop on arrayref
push(\@x,5);
}
use strict;
use warnings;
-no warnings 'deprecated', 'experimental::aggref';
+no warnings 'deprecated', 'experimental::autoderef';
use vars qw($data $array $values $hash $errpat);
plan 'no_plan';
tie my $var2 => 'main', [];
$dummy = @$var2 ; check_count '@{}';
{
- no warnings 'experimental::aggref';
+ no warnings 'experimental::autoderef';
$dummy = shift $var2 ; check_count 'shift arrayref';
}
tie my $var3 => 'main', {};
$dummy = %$var3 ; check_count '%{}';
{
- no warnings 'experimental::aggref';
+ no warnings 'experimental::autoderef';
$dummy = keys $var3 ; check_count 'keys hashref';
}
{
@array = (1, 2, 3);
$aref = [1, 2, 3];
-no warnings 'experimental::aggref';
+no warnings 'experimental::autoderef';
{
no warnings 'syntax';
$count3 = unshift (@array);
/* Warnings Categories added in Perl 5.019 */
-#define WARN_EXPERIMENTAL__AGGREF 56
+#define WARN_EXPERIMENTAL__AUTODEREF 56
#define WARN_EXPERIMENTAL__POSTDEREF 57
#define WARN_SYSCALLS 58