| 1 | package Data::Unixish::cat; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use syntax 'each_on_array'; # to support perl < 5.12 | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | #use Log::Any '$log'; | ||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use Data::Unixish::Util qw(%common_args); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |||||||||
| 12 | 1 | our $DATE = '2025-02-24'; # DATE | |||||||||
| 13 | 1 | our $DIST = 'Data-Unixish'; # DIST | |||||||||
| 14 | 1 | our $VERSION = '1.574'; # VERSION | |||||||||
| 15 | |||||||||||
| 16 | 1 | our %SPEC; | |||||||||
| 17 | |||||||||||
| 18 | $SPEC{cat} = { | ||||||||||
| 19 | 1 | v => 1.1, | |||||||||
| 20 | summary => 'Pass input unchanged', | ||||||||||
| 21 | args => { | ||||||||||
| 22 | %common_args, | ||||||||||
| 23 | }, | ||||||||||
| 24 | tags => [qw/filtering itemfunc/], | ||||||||||
| 25 | }; | ||||||||||
| 26 | 0 | ▶ | sub cat { | ||||||||
|
Subroutine
cat: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 27 | 0 | my %args = @_; | |||||||||
| 28 | 0 | my ($in, $out) = ($args{in}, $args{out}); | |||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | while (my ($index, $item) = each @$in) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | 0 | push @$out, $item; | |||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | 0 | [200, "OK"]; | |||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | 0 | ▶ | sub _cat_item { | ||||||||
|
Subroutine
_cat_item: not called CC=1 SCAR=6.9
| |||||||||||
| 38 | 0 | $_[0]; | |||||||||
| 39 | } | ||||||||||
| 40 | |||||||||||
| 41 | 1 | 1; | |||||||||
| 42 | # ABSTRACT: Pass input unchanged | ||||||||||
| 43 | |||||||||||
| 44 | __END__ | ||||||||||