develooper Front page | perl.perl5.porters | Postings from January 2005

Storable error

Lewis Foster
January 28, 2005 15:09
Storable error
Message ID:
All --
         I am using Storable to freeze variables before writing them to a 
database table in a project that I am working on.  However, this project is 
written using PerlEx so it is multi-threaded.  I am running into a problem 
when attempting to use freeze() on an array (though I have not actually 
attempted this with other data structures).  I am running Perl 5.8.6 (build 
811) with Storable 2.13.  I have written a small sample script that causes 
the error (this works fine when run as a .plx script from the command line:


use strict;
use Storable;
use Data::Dumper;


my $test = [

my $frozen;

eval {
         $frozen = Storable::freeze($test);
if($@) {
         print("Storable Error: $@\n");
else {
         print("Frozen value: Dumper($frozen)\n");

} # MAIN()

         When this is run using PerlEx through IIS, however, I get some 
very strange behavior.  Half the time the IIS process on my computer simply 
locks up and must be restarted.  The other half of the time, I get the 
following error:

Storable Error: syntax errorCompilation failed in require at 
D:/Perl/lib/ line 92.
  at ..\..\lib\ (autosplit into 
..\..\lib\auto\Storable\ line 266

         I am hoping that you may have some idea as to why it would be 
failing.  Any thoughts?

         D. Lewis Foster

An excerpt from an actual Nanotechnology Physics book....
"We will use molecular technology to bring health because the human body is 
made of molecules. The ill, the old, and the injured all suffer from 
mis-arranged patterns of atoms, whether mis-arranged by invading viruses, 
passing time, or swerving cars."
David Lewis Foster
Public Consulting Group
1700 Kraft Dr. Suite 2250
Blacksburg, VA 24060
Virginia Tech Graduate
Computer Science
Office: (540) 953-2330 x13
This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law. If 
you are not the intended recipient, you should delete this message and are 
hereby notified that any disclosure, copying, or distribution of this 
message, or the taking of any action based on it, is strictly prohibited. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About