DBM_FILTER::INT32(3perl)
π NAME π
DBM_Filter::int32 β a filter for DBM_Filter, bestie. Yes that's literally the whole name section, we're moving fast today β¨ (also hi, you're in section 3perl, the Perl Programmers Reference Guide corner of the library, come sit with us π«Ά)
π SYNOPSIS π
Okay so here's the vibe, copy-paste energy:
use SDBM_File; # or DB_File, GDBM_File, NDBM_File, or ODBM_File
use DBM_Filter ;
$db = tie %hash, ...
$db->Filter_Push('int32');
That's it. That's the whole ritual. You tie like normal, then you push the filter and let it cook π₯
β¨ DESCRIPTION β¨
So when do you even need this? Literally only one scenario, and it's a good one π
You use this DBM filter when you're interoperating with a C/C++ application that uses a C int as either the key and/or the value in the DBM file. That's the entire job description, no cap.
So like: your C/C++ bestie is out there writing raw C ints into the DBM file, and your Perl side needs to read and write those same things without everything turning into hot garbage π. Push 'int32' onto the filter stack and the two of you are finally speaking the same language. Iconic behaviour, honestly.
ngl the key thing here is the word "either" β it's the key, or the value, or both. It's giving flexible π
π SEE ALSO π
DBM_Filterβ the parent situation, go read it, it's the main character π§perldbmfilterβ the big-picture lore drop on filtering DBMs
π AUTHOR π
Paul Marquess β yes, that one. Reach him at pmqs@cpan.org if you have thoughts, questions, or just want to say the filter ate π
okay bestie that's the whole page, you're officially fluent in DBM_Filter::int32 π¦
this little love letter to you was brought to you by perl v5.44.0, dated 2026-10-17, straight out of the DBM_Filter::int32(3perl) section β so if your local copy says something else, go check your version, fr fr π
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms