mkurtis has asked for the wisdom of the Perl Monks concerning the following question:
And this appears to save it correctly. But then I try to get the stuff back...#!/usr/bin/perl -w use strict; use Storable; for($i=0; $i<5001; $i++) { our %docs; open(IN,"/info/$i.txt") || die $!; my @file = <IN>; $docs{$i} = @file; close(IN); } store(\%docs, '/info/docs');
and this gives me a use of uninitialized value in print error.#!/usr/bin/perl -w use strict; use Storable; $docs = retrieve('/info/docs'); print $docs{1};
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Making Storable Work
by Zaxo (Archbishop) on Apr 12, 2004 at 01:35 UTC | |
by mkurtis (Scribe) on Apr 12, 2004 at 02:41 UTC | |
|
Re: Making Storable Work
by saintmike (Vicar) on Apr 12, 2004 at 01:29 UTC |