Search code examples
perlcgistorable

I'm getting "CGI Error: File is not a perl storable" error


I'm having an issue were my perl suddently and without any reason started throwing this exception back to me:

CGI Error: File is not a perl storable at blib\lib\Storable.pm (autosplit into blib\lib\auto\Storable_retrieve.al) line 380, at C:/myapp/src/main/perl/lib/Output.pm line 1831

Does anybody have any idea what the "File is not a perl storable at blib\lib\Storable.pm" is about and how to fix this?

Thanks, goe


Solution

  • You did something like

    use Storable qw( retrieve );
    my $data = retrieve('file.dat');
    

    and file.dat isn't in a format Storable recognises.