Skip Menu |

This queue is for tickets about the Tie-Cache CPAN distribution.

Report information
The Basics
Id: 69976
Status: resolved
Priority: 0/
Queue: Tie-Cache

People
Owner: CHAMAS [...] cpan.org
Requestors: JEB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.17
Fixed in: (no value)



Subject: Not an ARRAY reference at Tie::Cache.pm line 415.
In using this module, I somehow managed to generate this error (perl v5.10.1, x86_64-linux-thread-multi): Not an ARRAY reference at Tie::Cache.pm line 415. I'm only storing scalars in my usage of Tie::Cache.Around this line in moudle version 0.17 is: } elsif (($type eq 'ARRAY')) { for my $val (@$elem){ if ((ref $val)) { I can't see how this could not be an ARRAY ref if $type contains the capture from the regular expression (line 399) "$elem =~ /(SCALAR|HASH|ARRAY)/"; perhaps this should be "ref($elem) =~ /(...)/"? I dont have much confidence in my diagnosis! ;) Many thanks, James
I found the data i was storing into a tied hash was: Key: http://bit.ly/p9MFr1 Value: http://www.ticketmaster.com/event/0200464ab6c46495?artistid=847840&majorcatid=10001&minorcatid=1&brand=prudential&=ARRAY(0x9dbb7b8) Clearly this contains the text "ARRAY", which is what is triggering on this line. Perhaps the regex on line 399 needs to have a "^" at the start of it to help reduce confusion, or "ref($elem) =~ /^(...)/": if(ref $elem && ref($elem) =~ /^(SCALAR|HASH|ARRAY)/) { Many thanks, James
This should be fixed in version .19 uploaded to PAUSE/CPAN now. Thanks for the great bug report and sorry for the delay!
Subject: Tie-Cache-0.19.tar.gz
Download Tie-Cache-0.19.tar.gz
application/x-tar 11.1k

Message body not shown because it is not plain text.