bin/pmls

filter: Statementstmt 80.0% 16 / 20 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 78.5% 22 / 28 CC 1 SCAR 0.0
CC
1
Cov
75%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/pmpath ↑ Summary bin/podgrep »
1 #!/usr/bin/env perl
2 # pmls -- show date stamp of module
3  
4 # ------ pragmas
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our $VERSION = '2.1.0';
9  
10 1 ▶BEGIN { $^W = 1 }
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 # ------ define variable
13 1 my $module = undef; # module name
14  
15 1 ▶use FindBin qw($Bin);
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 ▶unless (@ARGV) {
Branch: 1 branch
BranchTrueFalseTotal
unless (@ARGV) 0 1 1
18 0 die "usage: $0 module ...\n";
19 }
20 1 for $module (@ARGV) {
21 1 ▶ if ( $^O eq "MSWin32" ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O eq 'MSWin32') { } 0 1 1
22 0 my $path = `$^X -S $Bin/pmpath $module`;
23 0 $path =~ s/\//\\/g;
24 0 system "dir " . $path;
25 } else {
26 1 system "ls -l " . `$^X -S $Bin/pmpath $module`;
27 }
28 }
29  
30 __END__
« bin/pmpath ↑ Summary bin/podgrep »