New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of RAWDATA broken badly in Attribute::Handlers in perl 5.10.0 RC2 #9146
Comments
From blank.sascha@googlemail.comCreated by blank.sascha@googlemail.comHello, my error report is about this particular change: | Change 32582 by rgs@stcosmo on 2007/12/06 10:59:27 This fix has broken the handling of RAWDATA completely as described in use strict; use Attribute::Handlers; sub A :ATTR(RAWDATA) { my $a :A(1, 2, "Hello", 3); With perl 5.8.8 and its version 0.78_02 of A::H I get the desired 1367:~$ perl5.8.8 ~/problem_with_attributes.pl But with perl 5.10.0 (patch 32593) and its version 0.79 of A::H the 1368:~$ perl5.10.0 ~/problem_with_attributes.pl As you can see $VAR5 -- that is the 'data' element -- is always empty The following small patch cures the problem for me. With it both my And while I'm at it: the patch fixes another small problem that I If no value is associated with the attribute, "undef" is passed. but that didn't happen since patch 32582: instead a reference to an *** lib/Attribute/Handlers.pm.orig 2007-12-08 11:51:11.000000000 +0100 Perl Info
|
From @rgsOn 08/12/2007, via RT Sascha Blank <perlbug-followup@perl.org> wrote:
Thanks, I've applied your patch as #32598 to bleadperl and confirmed
|
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
From @andk
> Thanks, I've applied your patch as #32598 to bleadperl and confirmed For me also Attribute::Types is fixed with 32600. perl -V appended. -- Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Characteristics of this binary (from libperl): |
Migrated from rt.perl.org#48355 (status was 'resolved')
Searchable as RT48355$
The text was updated successfully, but these errors were encountered: