shaolin_gungfu has asked for the wisdom of the Perl Monks concerning the following question:
Hi folks,
Can someone help me please? I've looked through the tutorials and Q&A sections with no luck...
I need to know how to do one of the following.
1. Is it possible to write an array to disk in the same way as you can a hash, with either the dbmopen/dbmclose or that tiehash thing?
or
2. How can I sequentially step through elements in a hash? For example with an array I would just 'push' things on, then I 'shift' them off.
or
3. If I don't know the key from my hash, how can I just retrieve the first value?
Thanks Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fun with arrays and hashes
by broquaint (Abbot) on Apr 16, 2002 at 15:13 UTC | |
|
Re: Fun with arrays and hashes
by perlplexer (Hermit) on Apr 16, 2002 at 15:14 UTC | |
|
Re: Fun with arrays and hashes
by moodster (Hermit) on Apr 16, 2002 at 15:23 UTC | |
|
Re: Fun with arrays and hashes
by strat (Canon) on Apr 16, 2002 at 15:34 UTC | |
|
Re: Fun with arrays and hashes
by xtype (Deacon) on Apr 16, 2002 at 15:25 UTC |