This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Attribute-Handlers: Swap out base for parent in test files.
authorkevin dawson <bowtie@cpan.org>
Mon, 19 Aug 2013 15:57:41 +0000 (16:57 +0100)
committerJames E Keenan <jkeenan@cpan.org>
Thu, 22 Aug 2013 01:50:29 +0000 (03:50 +0200)
Committer's note: Add dist/Attribute-Handlers/demo/MyClass.pm to list of
files whose $VERSION numbers do not have to be incremented when modified.
Since this file is found in a 'demo/' directory, it does not have to be
treated as if it were a real Perl library which happens to be shipping
with core.

For: RT #119365

Porting/cmpVERSION.pl
dist/Attribute-Handlers/demo/MyClass.pm
dist/Attribute-Handlers/t/multi.t

index f8fee14..46f1fef 100755 (executable)
@@ -79,6 +79,7 @@ my %skip;
     'lib/Config.pm',           # no version number but contents will vary
     'dist/Exporter/lib/Exporter/Heavy.pm',
     'win32/FindExt.pm',
+    'dist/Attribute-Handlers/demo/MyClass.pm', # it's just demonstration code
 } = ();
 
 # Files to skip just for particular version(s),
index d012b9f..7917536 100644 (file)
@@ -1,7 +1,7 @@
 package MyClass;
 $VERSION = '1.00';
 use 5.006;
-use base Attribute::Handlers;
+use parent qw(Attribute::Handlers);
 no warnings 'redefine';
 
 
index 5c80f82..34ff940 100644 (file)
@@ -92,7 +92,7 @@ my %z :Aokay(1,19);
 sub z :Aokay(1,20) {};
 
 package DerTest;
-use base 'Test';
+use parent qw(Test);
 use warnings;
 
 my $x5 :Dokay(1,21);