use strict;
use warnings;
-use Carp qw/croak/;
+use Carp qw<croak>;
-use B qw/class ppname svref_2object OPf_KIDS/;
+use B qw<class ppname svref_2object OPf_KIDS>;
=head1 NAME
my %ops;
$ops{$_} = 1 for scalops;
-$ops{$_} = 0 for qw/stub nextstate pushmark iter unstack/;
-$ops{$_} = 1 for qw/padsv/;
-$ops{$_} = 'list' for qw/padav/;
-$ops{$_} = 'list' for qw/padhv rv2hv/;
-$ops{$_} = 'list' for qw/padany/;
-$ops{$_} = 'list' for qw/match entereval readline/;
+$ops{$_} = 0 for qw<stub nextstate pushmark iter unstack>;
+$ops{$_} = 1 for qw<padsv>;
+$ops{$_} = 'list' for qw<padav>;
+$ops{$_} = 'list' for qw<padhv rv2hv>;
+$ops{$_} = 'list' for qw<padany>;
+$ops{$_} = 'list' for qw<match entereval readline>;
$ops{each} = { 0 => 0.5, 2 => 0.5 };
$ops{stat} = { 0 => 0.5, 13 => 0.5 };
$ops{localtime} = do { my @a = localtime; scalar @a };
$ops{gmtime} = do { my @a = gmtime; scalar @a };
-$ops{$_} = { 0 => 0.5, 10 => 0.5 } for map "gpw$_", qw/nam uid ent/;
-$ops{$_} = { 0 => 0.5, 4 => 0.5 } for map "ggr$_", qw/nam gid ent/;
-$ops{$_} = 'list' for qw/ghbyname ghbyaddr ghostent/;
-$ops{$_} = { 0 => 0.5, 4 => 0.5 } for qw/gnbyname gnbyaddr gnetent/;
-$ops{$_} = { 0 => 0.5, 3 => 0.5 } for qw/gpbyname gpbynumber gprotoent/;
-$ops{$_} = { 0 => 0.5, 4 => 0.5 } for qw/gsbyname gsbyport gservent/;
+$ops{$_} = { 0 => 0.5, 10 => 0.5 } for map "gpw$_", qw<nam uid ent>;
+$ops{$_} = { 0 => 0.5, 4 => 0.5 } for map "ggr$_", qw<nam gid ent>;
+$ops{$_} = 'list' for qw<ghbyname ghbyaddr ghostent>;
+$ops{$_} = { 0 => 0.5, 4 => 0.5 } for qw<gnbyname gnbyaddr gnetent>;
+$ops{$_} = { 0 => 0.5, 3 => 0.5 } for qw<gpbyname gpbynumber gprotoent>;
+$ops{$_} = { 0 => 0.5, 4 => 0.5 } for qw<gsbyname gsbyport gservent>;
sub enter {
my ($self, $cv) = @_;
$next = $next->sibling;
}
$n = name($op)
- } while ($op->flags & OPf_KIDS and { map { $_ => 1 } qw/null leave/ }->{$n});
- return 'list', undef unless { map { $_ => 1 } qw/gv refgen/ }->{$n};
+ } while ($op->flags & OPf_KIDS and { map { $_ => 1 } qw<null leave> }->{$n});
+ return 'list', undef unless { map { $_ => 1 } qw<gv refgen> }->{$n};
local $self->{sub} = 1;
my ($rc, $lc) = $self->inspect($op);
return $r, scale $c, $lc;
use strict;
use warnings;
-use lib qw{blib/lib blib/arch};
+use lib qw<blib/lib blib/arch>;
my $bd;
BEGIN {
require Sub::Nary;
-for (qw/new nary flush/) {
+for (qw<new nary flush>) {
ok(Sub::Nary->can($_), 'SN can ' . $_);
}
my $fake = { };
bless $fake, 'Sub::Nary::Hlagh';
-for (qw/flush/) {
+for (qw<flush>) {
eval "Sub::Nary::$_('Sub::Nary')";
like($@, qr/^First\s+argument/, "SN::$_ isn't a class method");
eval "Sub::Nary::$_(\$fake)";
[ sub { return %h }, 'list' ],
[ sub { return $h{a} }, 1 ],
- [ sub { return @h{qw/a b/} }, 2 ],
+ [ sub { return @h{qw<a b>} }, 2 ],
[ sub { return @h{@a[1 .. 3]} }, 3 ],
[ sub { return @h{@a[$y .. 3]} }, 'list' ],
[ sub { return keys %h }, 'list' ],
[ sub { for ($x, 1, $y) { return 1, 2 } }, 2 ],
[ sub { for (@a) { return 1, do { $x } } }, 2 ],
[ sub { for (keys %h) { return do { 1 }, do { return @a[0, 2] } } }, 2 ],
- [ sub { for my $i (1 .. 4) { return @h{qw/a b/} } }, 2 ],
+ [ sub { for my $i (1 .. 4) { return @h{qw<a b>} } }, 2 ],
[ sub { for (my $i; $i < 10; ++$i) { return 1, @a[do{return 2, 3}] } }, 2 ],
[ sub { return 1, 2 for 1 .. 4 }, 2 ],
[ sub { %h }, 'list' ],
[ sub { $h{a} }, 1 ],
- [ sub { @h{qw/a b/} }, 2 ],
+ [ sub { @h{qw<a b>} }, 2 ],
[ sub { keys %h }, 'list' ],
[ sub { values %h }, 'list' ],
} elsif ($h{foo}) {
return 3, @a[4, 5];
} elsif (@a) {
- return @h{qw/a b c/}, $y
+ return @h{qw<a b c>}, $y
}
}
my @tests = (
[ sub { delete $h{foo} }, 1 ],
- [ sub { delete @h{qw/foo bar baz/} }, 3 ],
+ [ sub { delete @h{qw<foo bar baz>} }, 3 ],
[ sub { return <$x> }, 'list' ],
load_or_skip_all('Pod::Coverage', '0.18' );
all_pod_coverage_ok({ also_private => [
- qr/^inspect/, qr/^pp_/, qw/enter/,
- qw/tag scalops/,
- qw/null zero count scale normalize add combine cumulate power/,
- qw/name const_sv gv_or_padgv padval/
+ qr/^inspect/,
+ qr/^pp_/,
+ qw<enter>,
+ qw<tag scalops>,
+ qw<null zero count scale normalize add combine cumulate power>,
+ qw<name const_sv gv_or_padgv padval>,
] });