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