blib/script/rot13

filter: Statementstmt 100% 9 / 9 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/script/false ↑ Summary blib/script/true »
1 #!/usr/local/bin/perl
2 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =begin metadata
6  
7 Name: rot13
8 Description: Rotate the Latin letters by 13 positions
9 Author: Mark Rosetta (@marked on GitHub)
10 Contributor: brian d foy, bdfoy@cpan.org
11 License: artistic2
12  
13 =end metadata
14  
15 =cut
16  
17 4 ▶while ( <> ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline ARGV)) 5 4 9
18 5 tr/A-Za-z/N-ZA-Mn-za-m/;
19 5 print;
20 };
« blib/script/false ↑ Summary blib/script/true »