From: Dave Rolsky Date: Sun, 25 Nov 2007 20:55:25 +0000 (+0000) Subject: inherit from Exporter for Perl 5.6.x X-Git-Tag: 0.02~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d48c186f81e109d93983829520df6a2e244d2cc1;p=gitmo%2FMooseX-ClassAttribute.git inherit from Exporter for Perl 5.6.x --- diff --git a/Changes b/Changes index b16c832..d58661d 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,10 @@ +0.02 2007-11-25 + +- Inherit from Exporter, rather than trying to import its + import(). Unfortunately, older Exporters as shipped with Perl 5.6.x + only allow subclassing. + + 0.01 2007-11-24 -* First version, released on an unsuspecting world. +- First version, released on an unsuspecting world. diff --git a/lib/MooseX/ClassAttribute.pm b/lib/MooseX/ClassAttribute.pm index bfa5feb..1980ce7 100644 --- a/lib/MooseX/ClassAttribute.pm +++ b/lib/MooseX/ClassAttribute.pm @@ -3,11 +3,11 @@ package MooseX::ClassAttribute; use strict; use warnings; -our $VERSION = '0.01'; +our $VERSION = '0.02'; our $AUTHORITY = 'cpan:DROLSKY'; our @EXPORT = 'class_has'; ## no critic ProhibitAutomaticExportation -use Exporter qw( import ); +use base 'Exporter'; use B qw( svref_2object ); use Sub::Name;