whohasit has asked for the wisdom of the Perl Monks concerning the following question:
The application reads them in using:
where $val is the returned SQL column value.%hash=split(',', $val)
Updating the hash (rare) does the reverse using:
Can somebody recommend a better, more effecient (and safer) way to do this?$val=join(',',(keys(%hash)))
Bill
20050707 Edit by ysth: change pre tags to p & code
Edit: g0n - changed title from "Effecient hash storage?"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Efficient hash storage?
by friedo (Prior) on Jul 08, 2005 at 06:03 UTC | |
by whohasit (Novice) on Jul 08, 2005 at 06:16 UTC | |
by jhourcle (Prior) on Jul 08, 2005 at 11:25 UTC | |
|
Re: Efficient hash storage?
by rev_1318 (Chaplain) on Jul 08, 2005 at 13:26 UTC | |
|
Re: Efficient hash storage?
by revdiablo (Prior) on Jul 08, 2005 at 16:25 UTC |