Skip Menu |

This queue is for tickets about the XML-Bare CPAN distribution.

Report information
The Basics
Id: 84076
Status: resolved
Priority: 0/
Queue: XML-Bare

People
Owner: cpan [...] codechild.com
Requestors: jhnstudio [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.45
Fixed in: 0.49



Below error was generated during Perl v5.8.8 -> Perl v5.10.2 upgrade. Error Message Below: Can't use string ("7/16") as a HASH ref while "strict refs" in use at /usr/lib64/perl5/vendor_perl/XML/Bare.pm line 67. sub xget { my $hash = shift; return map $_->{'value'}, @{%$hash}{@_}; } Correct xget function for 5.10.2 : sub xget { my $hash = shift; return map $_->{'value'}, @{$hash}{@_}; } Disgard '%' to make it work on Perl 5.10.2
On Tue Mar 19 16:09:44 2013, jna1 wrote: Show quoted text
> Below error was generated during Perl v5.8.8 -> Perl v5.10.2 upgrade. > > Error Message Below: > > Can't use string ("7/16") as a HASH ref while "strict refs" in use at > /usr/lib64/perl5/vendor_perl/XML/Bare.pm line 67. > > sub xget { > my $hash = shift; > return map $_->{'value'}, @{%$hash}{@_}; > } > > Correct xget function for 5.10.2 : > > sub xget { > my $hash = shift; > return map $_->{'value'}, @{$hash}{@_}; > } > > Disgard '%' to make it work on Perl 5.10.2
This will be corrected in 0.49, likely tomorrow. Thanks for this suggestion. Can you show some example code that would actually generate this error so that I can easily add it as a test case?