BEGIN {
eval { require Config };
die 'OS unsupported' if $@;
- Config->import(qw/%Config/);
+ Config->import(qw<%Config>);
eval { require File::Spec };
die 'OS unsupported' if $@;
}
sub postamble {
my $cv = join ' -coverage ', 'cover',
- qw/statement branch condition path subroutine time/;
+ qw<statement branch condition path subroutine time>;
<<POSTAMBLE;
cover test_cover:
$cv -test
use strict;
use warnings;
-use Carp qw/croak/;
+use Carp qw<croak>;
=head1 NAME
=head1 SYNOPSIS
- use Scalar::Vec::Util qw/vfill vcopy veq/;
+ use Scalar::Vec::Util qw<vfill vcopy veq>;
my $s;
vfill $s, 0, 100, 1; # Fill with 100 bits 1 starting at 0.
=cut
-use base qw/Exporter/;
+use base qw<Exporter>;
our @EXPORT = ();
our %EXPORT_TAGS = (
- 'funcs' => [ qw/vfill vcopy vshift vrot veq/ ],
- 'consts' => [ qw/SVU_PP SVU_SIZE/ ]
+ 'funcs' => [ qw<vfill vcopy vshift vrot veq> ],
+ 'consts' => [ qw<SVU_PP SVU_SIZE> ]
);
our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
$EXPORT_TAGS{'all'} = [ @EXPORT_OK ];
use strict;
use warnings;
-use Benchmark qw/cmpthese/;
+use Benchmark qw<cmpthese>;
-use lib qw{blib/arch blib/lib};
-use Scalar::Vec::Util qw/vfill vcopy veq/;
+use lib qw<blib/arch blib/lib>;
+use Scalar::Vec::Util qw<vfill vcopy veq>;
BEGIN {
print 'We ';
use strict;
use warnings;
-use Config qw/%Config/;
+use Config qw<%Config>;
use Test::More tests => 4;
};
}
-use Scalar::Vec::Util qw/vfill vcopy veq SVU_PP/;
+use Scalar::Vec::Util qw<vfill vcopy veq SVU_PP>;
is(SVU_PP, 1, 'using pure perl subroutines');
-for (qw/vfill vcopy veq/) {
+for (qw<vfill vcopy veq>) {
no strict 'refs';
is(*{$_}{CODE}, *{'Scalar::Vec::Util::'.$_}{CODE}, $_ .' is ' . $_ . '_pp');
}
use Test::More;
-use Scalar::Vec::Util qw/SVU_SIZE SVU_PP/;
+use Scalar::Vec::Util qw<SVU_SIZE SVU_PP>;
if (SVU_PP) {
plan tests => 1;
use Test::More 'no_plan';
-use Scalar::Vec::Util qw/veq SVU_SIZE/;
+use Scalar::Vec::Util qw<veq SVU_SIZE>;
for ([ 1, 'offset', -1 ], [ 3, 'offset', '-1' ], [ 4, 'length', -1 ]) {
my @args = ('1') x 5;
use warnings;
use Test::More tests => 1;
-use Config qw/%Config/;
+use Config qw<%Config>;
-use Scalar::Vec::Util qw/veq/;
+use Scalar::Vec::Util qw<veq>;
my ($v1, $v2) = ('') x 2;
my $n = ($Config{alignbytes} - 1) * 8;
use Test::More 'no_plan';
-use Scalar::Vec::Util qw/vfill SVU_SIZE/;
+use Scalar::Vec::Util qw<vfill SVU_SIZE>;
for ([ 1, 'offset', -1 ], [ 2, 'length', '-1' ]) {
my @args = (~0) x 4;
use Test::More tests => 34;
-use Scalar::Vec::Util qw/vfill/;
+use Scalar::Vec::Util qw<vfill>;
my $n = 2 ** 16;
use lib 't/lib';
use Test::Leaner 'no_plan';
-use Scalar::Vec::Util qw/SVU_SIZE/;
+use Scalar::Vec::Util qw<SVU_SIZE>;
for ([ 1, 'offset', -1 ], [ 3, 'offset', '-1' ], [ 4, 'length', -1 ]) {
my @args = ('1') x 5;
use lib 't/lib';
use Test::Leaner 'no_plan';
-use Scalar::Vec::Util qw/vcopy SVU_SIZE/;
+use Scalar::Vec::Util qw<vcopy SVU_SIZE>;
for ([ 1, 'offset', -1 ], [ 3, 'offset', '-1' ], [ 4, 'length', -1 ]) {
my @args = (~0) x 5;
use lib 't/lib';
use Test::Leaner 'no_plan';
-use Scalar::Vec::Util qw/vcopy SVU_SIZE/;
+use Scalar::Vec::Util qw<vcopy SVU_SIZE>;
my $p = SVU_SIZE;
$p = 8 if $p < 8;
use warnings;
use Test::More tests => 34 + 2;
-use Config qw/%Config/;
+use Config qw<%Config>;
-use Scalar::Vec::Util qw/vcopy/;
+use Scalar::Vec::Util qw<vcopy>;
my $n = 2 ** 16;
use lib 't/lib';
use Test::Leaner 'no_plan';
-use Scalar::Vec::Util qw/vshift SVU_SIZE/;
+use Scalar::Vec::Util qw<vshift SVU_SIZE>;
for ([ 1, 'offset', -1 ], [ 2, 'length', '-1' ]) {
my @args = ('1') x 4;
use lib 't/lib';
use Test::Leaner 'no_plan';
-use Scalar::Vec::Util qw/vrot vcopy SVU_SIZE/;
+use Scalar::Vec::Util qw<vrot vcopy SVU_SIZE>;
for ([ 1, 'offset', -1 ], [ 2, 'length', '-1' ]) {
my @args = ('1') x 4;