blib/lib/Crypt/Memfrob.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 8 | 8 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 12 | 12 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Crypt::Memfrob; | ||||||
2 | |||||||
3 | 1 | 1 | 642 | use strict; | |||
1 | 3 | ||||||
1 | 43 | ||||||
4 | 1 | 1 | 6 | use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); | |||
1 | 2 | ||||||
1 | 216 | ||||||
5 | |||||||
6 | require Exporter; | ||||||
7 | @ISA = qw(Exporter); | ||||||
8 | @EXPORT = qw(); | ||||||
9 | @EXPORT_OK = qw( memfrob ); | ||||||
10 | $VERSION = '1.00'; | ||||||
11 | |||||||
12 | sub memfrob($) { | ||||||
13 | 257 | 257 | 1 | 3214 | return(join("", map { chr((ord($_) ^ 42) + 0) } (split(//, shift)))); | ||
512 | 1049 | ||||||
14 | } | ||||||
15 | |||||||
16 | 1; | ||||||
17 | __END__ |