surf <> wrote:
>
> In a package I have this, I then use DB_File to tie
> %data to a file:
>
>
> package persist;
Lowercase package names are, by convention, reserved for pragmas.
package Persist;
> %data;
You should always enable strict (and warnings) when developing Perl code.
use warnings;
use strict;
my %data;
> What could I have done wrong ?
Failed to check the Perl FAQ before posting to the Perl newsgroup:
perldoc -q persist
How do I keep persistent data across program calls?
perldoc -q copy
How do I print out or copy a recursive data structure?
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas