line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Acme::Cavaspazi; |
2
|
|
|
|
|
|
|
# ABSTRACT: a simple function to remove spaces from strings or lists of strings |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
1394
|
use 5.012; |
|
2
|
|
|
|
|
7
|
|
5
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
407
|
|
6
|
|
|
|
|
|
|
require Exporter; |
7
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Export subroutine cavaspazi |
10
|
|
|
|
|
|
|
our @EXPORT = qw(cavaspazi); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
$Acme::Cavaspazi::VERSION = "1.0.2"; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub cavaspazi { |
17
|
2
|
|
|
2
|
1
|
1540
|
my @results = (); |
18
|
2
|
|
|
|
|
7
|
for my $i (@_) { |
19
|
3
|
|
|
|
|
5
|
my $result = $i; |
20
|
3
|
|
|
|
|
13
|
$result =~ s/ /_/g; |
21
|
3
|
|
|
|
|
10
|
push @results, $result; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
# if input is a scalar, return a scalar |
24
|
2
|
100
|
|
|
|
7
|
if (@_ == 1) { |
25
|
1
|
|
|
|
|
5
|
return $results[0]; |
26
|
|
|
|
|
|
|
} else { |
27
|
1
|
|
|
|
|
6
|
return @results; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
"VITULO"; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |