diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-11-17 08:30:52 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-11-17 08:30:52 +0000 |
commit | e016bc2d267abd0d94b4a9c812dff40f050ee988 (patch) | |
tree | 7020190e08fabd7ac4f92029287b4cc89f31308b /lib/Attribute | |
parent | 5cdbb95e9cb5aae7bc0885e7a2361fa6fe145e0c (diff) | |
download | perl-e016bc2d267abd0d94b4a9c812dff40f050ee988.tar.gz |
Upgrade to Attribute::Handlers 0.81
p4raw-id: //depot/perl@34862
Diffstat (limited to 'lib/Attribute')
-rw-r--r-- | lib/Attribute/Handlers.pm | 2 | ||||
-rw-r--r-- | lib/Attribute/Handlers/Changes | 3 | ||||
-rw-r--r-- | lib/Attribute/Handlers/t/linerep.t | 8 |
3 files changed, 10 insertions, 3 deletions
diff --git a/lib/Attribute/Handlers.pm b/lib/Attribute/Handlers.pm index fe404c857b..4f6c01972f 100644 --- a/lib/Attribute/Handlers.pm +++ b/lib/Attribute/Handlers.pm @@ -4,7 +4,7 @@ use Carp; use warnings; use strict; use vars qw($VERSION $AUTOLOAD); -$VERSION = '0.80'; +$VERSION = '0.81'; # $DB::single=1; my %symcache; diff --git a/lib/Attribute/Handlers/Changes b/lib/Attribute/Handlers/Changes index 2b7849cc80..06e47ff62c 100644 --- a/lib/Attribute/Handlers/Changes +++ b/lib/Attribute/Handlers/Changes @@ -113,3 +113,6 @@ Revision history for Perl extension Attribute::Handlers 0.80 Fri Oct 24 12:06:00 CEST 2008 - CPAN release of the Attribute::Handlers version in bleadperl. +0.81 Sun Nov 9 22:47:00 CET 2008 + - Fix to make tests work on 5.6.X (Eric Rybski, RT #40781) + diff --git a/lib/Attribute/Handlers/t/linerep.t b/lib/Attribute/Handlers/t/linerep.t index 9b3da8e520..b743fbb8f3 100644 --- a/lib/Attribute/Handlers/t/linerep.t +++ b/lib/Attribute/Handlers/t/linerep.t @@ -25,13 +25,17 @@ sub Args : ATTR(CODE) { sub foo :Args(bar) {} -my $bar :SArgs(grumpf); +my $ref; +sub myref { $ref = shift; } +my $b; +eval "my \$bar :SArgs(grumpf); \$b = \\\$bar"; +is( $b, $ref, 'referent' ); sub SArgs : ATTR(SCALAR) { my ($package, $symbol, $referent, $attr, $data, $phase, $filename, $linenum) = @_; is( $package, 'main', 'package' ); is( $symbol, 'LEXICAL', 'symbol' ); - is( $referent, \$bar, 'referent' ); + myref($referent); is( $attr, 'SArgs', 'attr' ); is( ref $data, 'ARRAY', 'data' ); is( $data->[0], 'grumpf', 'data' ); |