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

Owner: CHAMAS [...]
Requestors: JEB [...]

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

Subject: Not an ARRAY reference at line 415.
Download (untitled) / with headers
text/plain 640b
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 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
Download (untitled) / with headers
text/plain 514b
I found the data i was storing into a tied hash was: Key: Value: 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
Download (untitled) / with headers
text/plain 121b
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to