From: Vincent Pit Date: Sat, 24 Aug 2013 21:53:18 +0000 (-0300) Subject: Switch qw delimiters to <> X-Git-Tag: v0.03~5 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fwith.git;a=commitdiff_plain;h=5d3ec9b6f2a27ddb9a986a67cd428df2340af986 Switch qw delimiters to <> --- diff --git a/lib/with.pm b/lib/with.pm index 2a086f5..4bef4ce 100644 --- a/lib/with.pm +++ b/lib/with.pm @@ -5,12 +5,12 @@ use 5.009_004; use strict; use warnings; -use Carp qw/croak/; +use Carp qw; use Filter::Util::Call; -use Text::Balanced qw/extract_variable extract_quotelike extract_multiple/; -use Scalar::Util qw/refaddr set_prototype/; +use Text::Balanced qw; +use Scalar::Util qw; -use Sub::Prototype::Util qw/flatten wrap/; +use Sub::Prototype::Util qw; =head1 NAME @@ -96,15 +96,15 @@ my $extractor = [ ]; my %skip; -$skip{$_} = 1 for qw/my our local sub do eval goto return +$skip{$_} = 1 for qw; -my @core = qw/abs accept alarm atan2 bind binmode bless caller chdir chmod +my @core = qw; my %core; $core{$_} = prototype "CORE::$_" for @core; diff --git a/samples/bench.pl b/samples/bench.pl index 149b964..fb89ddb 100755 --- a/samples/bench.pl +++ b/samples/bench.pl @@ -3,12 +3,12 @@ use strict; use warnings; -use Benchmark qw/cmpthese/; +use Benchmark qw; use lib 'blib/lib'; my $counter; -my @poultry = (qw/cock chick/); +my @poultry = (qw); sub Duck::quack { $counter += $_[0]->{id} * $_[0] } sub fly { $counter += $_[0]; } diff --git a/samples/funcs.pl b/samples/funcs.pl index 94a4147..72a7325 100755 --- a/samples/funcs.pl +++ b/samples/funcs.pl @@ -14,7 +14,7 @@ my %dup; grep { eval { () = prototype "CORE::$_"; 1 } } grep !$dup{$_}++, @f; my $c = 10; -my $base = "my \@core = qw/"; +my $base = "my \@core = qw<"; my $out = $base; my $l = length $base; my $first = 1; @@ -34,5 +34,5 @@ for (@f) { redo; } } -$out .= "/;\n"; +$out .= ">;\n"; print $out; diff --git a/t/92-pod-coverage.t b/t/92-pod-coverage.t index 1fe2092..c6a8fc5 100644 --- a/t/92-pod-coverage.t +++ b/t/92-pod-coverage.t @@ -12,5 +12,8 @@ load_or_skip_all('Test::Pod::Coverage', '1.08', [ ]); load_or_skip_all('Pod::Coverage', '0.18' ); all_pod_coverage_ok( - { also_private => [ qr/import$/, qw/code corewrap subwrap defer/ ] } + { also_private => [ + qr/import$/, + qw, + ] } );