Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: what would you like to see in perl5.12? (seek)by tye (Sage) |
on Aug 05, 2008 at 14:35 UTC ( [id://702374]=note: print w/replies, xml ) | Need Help?? |
'seek' doesn't care whether the key exists or not. It just arranges for the next use of each (actually, adding a way to reverse 'each' would be prudent as well) finds the earliest key greater than or equal to the key given to 'seek'. For convenience of interface, 'seek' might return something which might be different depending on whether the requested key exists or not, but those are details best left to the (unknown) implementor. - tye
In Section
Meditations
|
|