in reply to
Re^2: re-key a hash
in thread
re-key a hash
I can understand the caveat if you're iterating over
values
or with
each
, but
sort keys
is not a hash iterator.
We're not really tightening our belts, it just feels that way because we're getting fatter.
Comment on
Re^3: re-key a hash
Select
or
Download
Code
Replies are listed 'Best First'.
Re^4: re-key a hash
by
ysth
(Canon)
on Aug 03, 2004 at 01:32 UTC
You're right; I misread the loop. There's no problem at all, then, except that the code doesn't do what he wants.
[reply]
In Section
Seekers of Perl Wisdom