in reply to Re: Simplifying for loop and applying multiple push function
in thread Simplifying for loop and applying multiple push function
Great solution! And if anyone else was wondering, yes, these will both be properly ordered:
From keys:
The keys are returned in an apparently random order. The act +ual random order is subject to change in future versions of perl +, but it is guaranteed to be the same order as either the "val +ues" or "each" function produces (given that the hash has not bee +n modified).
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
---|