File tree Expand file tree Collapse file tree 9 files changed +12
-22
lines changed
Expand file tree Collapse file tree 9 files changed +12
-22
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,15 @@ modify it under the same terms as Perl itself.
3232
3333use Carp;
3434use strict;
35- use vars qw( $VERSION @ISA) ;
3635use IO::Handle;
3736
3837use 5.005;
3938
4039# ## The package version, both in 1.23 style *and* usable by MakeMaker:
41- $VERSION = " 2.114" ;
40+ our $VERSION = " 2.114" ;
4241
4342# ## Inheritance:
44- @ISA = qw( IO::Handle) ;
43+ our @ISA = qw( IO::Handle) ;
4544
4645# ==============================
4746
Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ use Test::Tester::Delegate;
1616
1717require Exporter;
1818
19- use vars qw( @ISA @EXPORT ) ;
20-
2119our $VERSION = ' 1.302205' ;
2220
23- @EXPORT = qw( run_tests check_tests check_test cmp_results show_space ) ;
24- @ISA = qw( Exporter ) ;
21+ our @EXPORT = qw( run_tests check_tests check_test cmp_results show_space ) ;
22+ our @ISA = qw( Exporter ) ;
2523
2624my $Test = Test::Builder-> new;
2725my $Capture = Test::Tester::Capture-> new;
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ our $VERSION = '1.302205';
77
88use Test::Builder;
99
10- use vars qw( @ISA ) ;
11- @ISA = qw( Test::Builder ) ;
10+ our @ISA = qw( Test::Builder ) ;
1211
1312# Make Test::Tester::Capture thread-safe for ithreads.
1413BEGIN {
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ our $VERSION = '1.302205';
77
88use Scalar::Util();
99
10- use vars ' $AUTOLOAD' ;
11-
1210sub new
1311{
1412 my $pkg = shift ;
@@ -21,7 +19,7 @@ sub new
2119
2220sub AUTOLOAD
2321{
24- my ($sub ) = $AUTOLOAD =~ / .*::(.*?)$ / ;
22+ my ($sub ) = our $AUTOLOAD =~ / .*::(.*?)$ / ;
2523
2624 return if $sub eq " DESTROY" ;
2725
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ use warnings;
55our $VERSION = ' 1.302205' ;
66
77BEGIN { require Test2::EventFacet; our @ISA = qw( Test2::EventFacet) }
8- use vars qw/ $AUTOLOAD/ ;
98
109# replace set_details
1110{
@@ -35,7 +34,7 @@ sub can {
3534}
3635
3736sub AUTOLOAD {
38- my $name = $AUTOLOAD ;
37+ my $name = our $AUTOLOAD ;
3938 $name =~ s / ^.*::// g ;
4039 my $sub = $_ [0]-> can($name );
4140 goto &$sub ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use Test2::Workflow::Task::Group();
1515use Test2::Tools::Mock();
1616use Test2::Util::Importer();
1717
18- use vars qw/ @EXPORT @EXPORT_OK/ ;
18+ our ( @EXPORT , @EXPORT_OK ) ;
1919push @EXPORT => qw{ describe cases} ;
2020push @EXPORT_OK => qw{ include_workflow include_workflows spec_defaults} ;
2121
Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ package SmallTest;
55
66require Exporter;
77
8- use vars qw( @ISA @EXPORT ) ;
9- @ISA = qw( Exporter ) ;
10- @EXPORT = qw( ok is_eq is_num ) ;
8+ our @ISA = qw( Exporter ) ;
9+ our @EXPORT = qw( ok is_eq is_num ) ;
1110
1211use Test::Builder;
1312
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use Test2::API qw/intercept context/;
44
55use Test2::Tools::Defer qw/ def do_def/ ;
66
7- use vars qw/ @CALLBACKS/ ;
7+ our @CALLBACKS ;
88
99BEGIN {
1010 no warnings ' redefine' ;
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ BEGIN {
1313 *bas_ok = \&Test2::Tools::Basic::ok;
1414}
1515
16- use vars qw/ $TODO/ ;
17-
1816sub leg_ok ($;$@) {
1917 my ($bool , $name , @diag );
2018 my $ctx = context();
@@ -33,7 +31,7 @@ sub new_ok($;$@) {
3331}
3432
3533{
36- local $TODO = " Testing TODO" ;
34+ local our $TODO = " Testing TODO" ;
3735
3836 tm_ok(0, " tm_ok fail" );
3937 tm_fail(' tm_fail' );
You can’t perform that action at this time.
0 commit comments