qualifiers => $self->qualifiers,
subpath => $self->subpath,
};
}
sub TO_JSON { shift->to_hash }
sub _url_encode {
my ($string, $pattern) = @_;
# RFC-3986
$patt
tem $purl->TO_JSON
Helper method for JSON modules (L<JSON>, L<JSON::PP>, L<JSON::XS>, L<Cpanel::JSON::XS>, L<Mojo::JSON>, etc).
use Mojo::JSON qw(encode_json);
say encode_json($purl);
GetOptionsFromArray :config gnu_compat);
use Pod::Usage qw(pod2usage);
use Carp ();
use JSON::PP ();
use Data::Dumper ();
use URI::VersionRange ();
our $VERSION = '2.23';
sub cli_erro
> 'json');
GetOptionsFromArray(
\@args, \%options, qw(
help
man
v
contains=s
null|0
format=s
json
@args;
pod2usage(-verbose => 1) if !$vers_string;
$options{format} = 'json' if defined $options{json};
$options{format} = 'human-readable' if defined $options{'human-readable'}
GetOptionsFromArray :config gnu_compat);
use Pod::Usage qw(pod2usage);
use Carp ();
use JSON::PP ();
use Data::Dumper ();
use URI::PackageURL ();
our $VERSION = '2.23';
sub cli_error
DERR "ERROR: $error\n";
}
sub run {
my ($class, @args) = @_;
my %options = (format => 'json');
GetOptionsFromArray(
\@args, \%options, qw(
help|h
man
alifiers|qualifier=s%
subpath=s
null|0
format=s
json
yaml
dumper
env
)
) or pod2usage(-verbose => 0);
rse($version) > $version_class->parse($next_constraint->version)));
return FALSE;
}
sub TO_JSON {
return {scheme => $_[0]->scheme, constraints => $_[0]->constraints};
}
sub _pairwise {
onents.
=item $vers->TO_JSON
Helper method for JSON modules (L<JSON>, L<JSON::PP>, L<JSON::XS>, L<Mojo::JSON>, etc).
use Mojo::JSON qw(encode_json);
say encode_json($vers); # {"constraint
sub to_human_string { sprintf '%s %s', $COMPARATOR{$_[0]->comparator}, $_[0]->version }
sub TO_JSON { {version => $_[0]->version, comparator => $_[0]->comparator} }
1;
__END__
=head1 NAME
URI::V
al 2.10
=item $vers->TO_JSON
Helper method for JSON modules (L<JSON>, L<JSON::PP>, L<JSON::XS>, L<Mojo::JSON>, etc).
use Mojo::JSON qw(encode_json);
say encode_json($constraint); # {"comp
DERR "ERROR: $error\n";
}
sub run {
my ($class, @args) = @_;
my %options = (format => 'json');
GetOptionsFromArray(
\@args, \%options, qw(
help|h
man
alifiers|qualifier=s%
subpath=s
null|0
format=s
json
yaml
dumper
env
)
) or pod2usage(-verbose => 0);
) = @args;
pod2usage(-verbose => 1) if !$purl_string;
$options{format} = 'json' if defined $options{json};
$options{format} = 'yaml' if defined $options{yaml};
$options{format} =