Catman...::Null(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ¦‹ 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