in reply to Re: Simplifying for loop and applying multiple push function
in thread Simplifying for loop and applying multiple push function
To my way of thinking, it's simpler to write:
Even though the net result is the same.@one = values %hash; @two = keys %hash;
Just wanted to show another WTDI.
Update
Whoops, Roy Johnson is right, this is equivalent only in some circumstances.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Simplifying for loop and applying multiple push function
by Roy Johnson (Monsignor) on Dec 14, 2005 at 21:23 UTC | |
by diotalevi (Canon) on Dec 14, 2005 at 23:40 UTC | |
by eric256 (Parson) on Dec 14, 2005 at 23:58 UTC |
In Section
Seekers of Perl Wisdom