Clownf...terator(3pm)
π Clownf...terator(3pm) π
okay so bestie, this is the Clownfish::HashIterator page β it lives in the User Contributed Perl Documentation, section 3pm. it's giving "how do i walk through a hashtable without losing my mind" and honestly? iconic. π
β¨ NAME β¨
Clownfish::HashIterator β Hashtable Iterator. that's it, that's the whole vibe. π
β¨ SYNOPSIS β¨
the way you literally just loop and vibe:
my $iter = Clownfish::HashIterator->new($hash);
while ($iter->next) {
my $key = $iter->get_key;
my $value = $iter->get_value;
}
β¨ DESCRIPTION β¨
okay so... there's literally nothing here. the section exists, it's just empty. no cap. main character silence. π€«β¨
β¨ CONSTRUCTORS β¨
π¦ new
my $iter = Clownfish::HashIterator->new($hash);
Return a HashIterator for hash. boom. that's your iterator, bestie. π«Ά
β¨ METHODS β¨
πΈ next
my $bool = $hash_iterator->next();
Advance the iterator to the next key-value pair. lowkey the whole point of this class.
Returns: true if there's another key-value pair, false if the iterator is exhausted. when it says false, it's done-done. π
πΈ get_key
my $string = $hash_iterator->get_key();
Return the key of the current key-value pair. and listen β it is not allowed to call this method before next() was called for the first time, or after the iterator was exhausted. so like, don't be messy. π
πΈ get_value
my $obj = $hash_iterator->get_value();
Return the value of the current key-value pair. same rules, same energy: it is not allowed to call this method before next() was called for the first time, or after the iterator was exhausted. fr fr. π
β¨ INHERITANCE β¨
Clownfish::HashIterator isa Clownfish::Obj. yes queen, it knows its lineage. π
no cap, the rules about callingget_keyandget_valueat the wrong time are real β treat them like a hard boundary, not a suggestion. π«Ά
and that's the whole page, bestie!! π this one came from perl v5.42.3, dated 2026-09-02, and it's the Clownf...terator(3pm) page. slay, go iterate something. β¨ππ¦
π¦ where this page comes from
- fedora 43: perl-Clownfish 0.8.0-1.fc43 Β· Apache-2.0
- fedora 44: perl-Clownfish 0.8.0-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms