Path to this page:
./
devel/p5-Hash-SafeKeys,
Perl5 module to get hash contents without resetting each iterator
Branch: CURRENT,
Version: 0.04nb1,
Package name: p5-Hash-SafeKeys-0.04nb1,
Maintainer: pkgsrc-usersEvery hash variable in Perl has its own internal iterator, accessed
by the builtin each, keys, and values functions. The iterator is
also implicitly used whenever the hash is evaluated in list context.
The iterator is "reset" whenever keys or values is called on a
hash, including the implicit calls when the hash is evaluated in
list context. That makes it dangerous to do certain hash operations
inside a while ... each loop.
Hash::SafeKeys provides alternate functions to access the keys,
values, or entire contents of a hash in a way that does not reset
the iterator, making them safe to use in such contexts.
Master sites: (Expand)
Filesize: 9.045 KB
Version history: (Expand)
- (2024-11-16) Updated to version: p5-Hash-SafeKeys-0.04nb1
- (2024-01-04) Package added to pkgsrc.se, version p5-Hash-SafeKeys-0.04 (created)
CVS history: (Expand)
2024-11-16 13:08:07 by Thomas Klausner | Files touched by this commit (2504) |
Log message:
*: recursive bump for perl 5.40
|
2024-01-04 12:04:19 by Thomas Klausner | Files touched by this commit (3) |
Log message:
devel/p5-Hash-SafeKeys: import p5-Hash-SafeKeys-0.04
Every hash variable in Perl has its own internal iterator, accessed
by the builtin each, keys, and values functions. The iterator is
also implicitly used whenever the hash is evaluated in list context.
The iterator is "reset" whenever keys or values is called on a
hash, including the implicit calls when the hash is evaluated in
list context. That makes it dangerous to do certain hash operations
inside a while ... each loop.
Hash::SafeKeys provides alternate functions to access the keys,
values, or entire contents of a hash in a way that does not reset
the iterator, making them safe to use in such contexts.
|