Catman...::Null(3pm)
π¦ Catmandu::Importer::Null (3pm) β the importer that shows up, drops one empty record, and dips π
ok bestie, gather round, because this one is short but it's lowkey iconic. This is the manual page for Catmandu::Importer::Null β the null importer you use for testing purposes. That's it. That's the whole job. No cap. π
β¨ NAME β¨
Catmandu::Importer::Null β a null importer, and she is here purely for testing purposes. That's her whole personality and honestly? Respect. π«Ά
β¨ SYNOPSIS β¨
Okay so here's how you actually summon her, first from the command line:
# From the command line
catmandu convert Null --fix 'add_field(foo,bar)'
# creates { "foo": "bar" }
and then, if you're a Perl script girlie, like this:
# In a Perl script
use Catmandu;
my $importer = Catmandu->importer('Null');
my $n = $importer->each(sub {
my $hashref = $_[0];
# ...
});
see how easy that was?? no drama, no config, just vibes π
β¨ DESCRIPTION β¨
So the tea is this: the importer generates one empty record and then it exists. That's the bit β literally one (1) empty record and she's out. πͺπ¨
Which makes her perfect for testing fix functions, because you get exactly a single record to play with. One record. No more, no less. It's giving minimalism, it's giving main character energy, it's giving "I did my one job and I did it flawlessly". β
β¨ METHODS β¨
Every Catmandu::Importer is a Catmandu::Iterable, and all its methods are inherited. So whatever you can do with an iterable, you can do here too. She's not reinventing anything, she's just standing on the shoulders of her ancestors and slaying. π
β¨ SEE ALSO β¨
Catmandu::Exporter::Nullβ the other half of the null duo π§
π just a heads up bestie: this page really is this short. There are no extra options hiding in here, no secret flags, nothing. What you see is what you get. Don't go looking for more, you'll just be searching forever π
and that's the whole page!! this was written for perl v5.40.1 and dated 2026-01-24, and the page is called Catman...::Null(3pm) in case you were wondering where you even were π bye bestie, go make some empty records ππΈ
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR 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