in reply to Making Storable Work

I'm not sure it relates to your problem, but line 10 of your storage script is in error. The value in a hash pair must be a scalar, so you want perhaps     $docs{$i} = \@file; Have you looked at the file content? It it what you expected? Your code will store line counts.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Making Storable Work
by mkurtis (Scribe) on Apr 12, 2004 at 02:41 UTC
    Thank you saintmike and Zaxo, I didn't know how to use hash references before, I looked it up and now I got it. If anybody else doesn't know how to do it here it is:
    %docs = %{$docs};
    Just use that and it will fill %docs with your original hash.

    mkurtis