Catmandu::Importer::Null(3pm)

Catmandu::Importer::Null3pm

Null importer used for testing purposes

Usage

    # From the command line
    catmandu convert Null --fix 'add_field(foo,bar)'   
    # creates { "foo": "bar" }
    # In a Perl script
    use Catmandu;
    my $importer = Catmandu->importer('Null');
    my $n = $importer->each(sub {
        my $hashref = $_[0];
        # ...
    });

Overview

The importer generates one empty record and then exists. This importer can be used to test fix functions, generating a single record.

Methods

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From libcatmandu-perl 1.2024-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.