princepawn has asked for the wisdom of the Perl Monks concerning the following question:
I need to basically keep some information available and modifiable across invocations of a Perl script and a tied Perl hash seems ideal. However:
I only want the information for the hash to exist for that day. Meaning, when the script is run the next day, its contents are initially undefined and then as it is used its contents accumulate over the day.
One thought I had is to force the hash-tying module to tie its files to a directory, whose name is today's date. The other thought I had was to make the first 3 fields of the hash the day,month, and year. The final thought I hash was to use Tie::CacheHash and define the sort order to be the date.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A Tied Dated Hash?
by lhoward (Vicar) on Oct 18, 2000 at 21:28 UTC | |
by princepawn (Parson) on Oct 18, 2000 at 21:33 UTC | |
by arturo (Vicar) on Oct 18, 2000 at 21:49 UTC | |
by Fastolfe (Vicar) on Oct 18, 2000 at 21:53 UTC | |
by Fastolfe (Vicar) on Oct 18, 2000 at 21:35 UTC | |
|
Re: A Tied Dated Hash?
by little (Curate) on Oct 18, 2000 at 21:18 UTC | |
|
Re: A Tied Dated Hash?
by AgentM (Curate) on Oct 19, 2000 at 01:49 UTC |