er to use, the remainder are
used as options for the selected encoder.
Examples:
$src->encode('json')
$src->encode('utf8')
$src->encode('base64')
=head2 decode
Passes each item through a decode
er to use, the remainder are
used as options for the selected decoder.
Examples:
$src->decode('json')
$src->decode('utf8')
$src->decode('base64')
=head2 print
Shortcut for C<< ->each(sub { prin
de::encode_utf8($_)
}
},
json => sub {
require JSON::MaybeXS;
my $json = JSON::MaybeXS->new(@_);
sub {
$json->encode($_)
}
},
csv =>
, Encode::FB_QUIET)
}
},
json => sub {
require JSON::MaybeXS;
my $json = JSON::MaybeXS->new(@_);
sub {
$json->decode($_)
}
},
csv =>
er to use, the remainder are
used as options for the selected encoder.
Examples:
$src->encode('json')
$src->encode('utf8')
$src->encode('base64')
=cut
sub encode {
my ($self, $type) = splic