App-CaseUtils

 view release on metacpan or  search on metacpan

script/uppercase  view on Meta::CPAN

#!perl

# Note: This script is a CLI for Riap function /App/CaseUtils/uppercase
# and generated automatically using Perinci::CmdLine::Gen version 0.502

use 5.010001;
use strict;
use warnings;

use Perinci::CmdLine::Any;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2026-02-09'; # DATE
our $DIST = 'App-CaseUtils'; # DIST
our $VERSION = '0.001'; # VERSION

my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/CaseUtils/uppercase",
    program_name => "uppercase",
    read_config => 0,
    read_env => 0,
);

$cmdline->run;

# ABSTRACT: Change input to upper case
# PODNAME: uppercase

__END__

=pod

=encoding UTF-8

=head1 NAME

uppercase - Change input to upper case

=head1 VERSION

This document describes version 0.001 of uppercase (from Perl distribution App-CaseUtils), released on 2026-02-09.

=head1 SYNOPSIS

B<uppercase> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<uppercase> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<uppercase> [B<L<--format|/"--format=s">>=I<name>|B<L<--json|/"--json">>] [B<L<--(no)naked-res|/"--naked-res">>] [B<L<--page-result|/"--page-result">>[=I<program>]|B<L<--view-result|/"--view-result">>[=I<program>]]

=head1 DESCRIPTION

This is basically a simple shortcut for something like:

 % perl -ne'print uc' INPUT ...
 % perl -pe'$_ = uc' INPUT ...

with some additional options.

=head1 OPTIONS

C<*> marks required options.

=head2 Output options

=over

=item B<--format>=I<s>

Choose output format, e.g. json, text.

Default value:

 undef

Output can be displayed in multiple formats, and a suitable default format is
chosen depending on the application and/or whether output destination is
interactive terminal (i.e. whether output is piped). This option specifically
chooses an output format.


=item B<--json>

Set output format to json.

=item B<--naked-res>

When outputing as JSON, strip result envelope.

Default value:

 0

By default, when outputing as JSON, the full enveloped result is returned, e.g.:

 [200,"OK",[1,2,3],{"func.extra"=>4}]

The reason is so you can get the status (1st element), status message (2nd
element) as well as result metadata/extra result (4th element) instead of just
the result (3rd element). However, sometimes you want just the result, e.g. when
you want to pipe the result for more post-processing. In this case you can use
C<--naked-res> so you just get:

 [1,2,3]


=item B<--page-result>

Filter output through a pager.

This option will pipe the output to a specified pager program. If pager program
is not specified, a suitable default e.g. C<less> is chosen.


=item B<--view-result>



( run in 0.408 second using v1.01-cache-2.11-cpan-13bb782fe5a )