$val=join(',',(keys(%hash)))
No it doesn't. Your original $var contains key-value pairs, whereas the code for the reverse you show contains values only. To get the reverse, you need something like:
$val = join(',', %hash);
Paul
In reply to Re: Efficient hash storage?
by rev_1318
in thread Efficient hash storage?
by whohasit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |