Skip Menu |

This queue is for tickets about the Bot-BasicBot-Pluggable CPAN distribution.

Report information
The Basics
Id: 68887
Status: resolved
Priority: 0/
Queue: Bot-BasicBot-Pluggable

People
Owner: Nobody in particular
Requestors: BABAR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.92
Fixed in: (no value)



Subject: Storable doesn't restore values
When using Storable as the storage backend, persistent values are not restored for a module because the module name is wrongly parsed, hence the values are cached in './Module', but looked for in 'Module'. The following patch fixes it for me: @@ -35,7 +35,7 @@ sub load { my $self = shift; for my $file ( glob File::Spec->catfile( $self->{dir}, '*.storable' ) ) { - my (undef, undef, $name) = map {File::Spec->splitpath($_)} $file =~ /^(.*?)\.storable$/; + my ($name) = $file =~ /^(.*?)\.storable$/; $self->{store}{$name} = retrieve($file); } }
Thanks for the patch. I just released 0.93 to the CPAN.