DBM::D...terator(3pm)
π NAME π
DBM::Deep::Iterator β the iterator for FIRSTKEY() and NEXTKEY(), bestie β¨
(also, hi, you found the page β it's from the User Contributed Perl Documentation corner of the manual, and the header up top is literally DBM::D...terator(3pm) because the name got truncated mid-word. iconic behavior honestly π)
π― PURPOSE π―
okay so listen β this is an internal-use-only object for DBM::Deep. that's the whole vibe. it's the iterator that powers FIRSTKEY() and NEXTKEY(). no cap, that's it. you're not supposed to be out here instantiating it yourself, it's a backstage-pass situation π«Ά
π¦ OVERVIEW π¦
this object
(no fr that's the entire overview. the manpage said "This object" and then just β¨ left β¨. we respect the mystery π)
π METHODS π
πΈ new(\%params)
the constructor, she takes a hashref of params π the hashref is assumed to have these elements in it:
engineβ of typeDBM::Deep::Engine(and yes, the original literally leaves that paren hanging open, we're keeping it exactly as written, iykyk)base_offsetβ thebase_offsetof the invokingDBM::Deepobject
π§ reset()
this method takes no arguments. periodt.
what she does: resets the iterator so it starts from the beginning again. fresh start, main character energy, we love a glow-up π₯
what she returns: nothing. that's right, nothing at all. don't come looking for a return value, there isn't one π
β get_next_key( $obj )
that's the signature. get_next_key( $obj ). and that's... literally all the manpage gives us π no description, no return details, nothing. she said "here's my name, don't ask questions" and honestly? respect π
lowkey reminder bestie: this whole object is internal-use-only. it's plumbing. gorgeous, functional plumbing, but plumbing π«Ά
and that's the page!! π written up in the User Contributed Perl Documentation set, shipped with perl v5.42.0, dated 2023-11-13 β mwah, go read your FIRSTKEY() and NEXTKEY() docs, love u, bye ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBM-Deep 2.0019-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms