- or download this
sub report {
trim($_) for @_;
return sprintf "...",@_;
}
- or download this
sub report {
my @strings = @_;
trim($_) for @strings;
return sprintf "...", @strings;
}
- or download this
# Doesn't work:
my @strings = map { trimInPlace(\$_) } @_;
...
sprintf "...", map { trimmed($_) } @_;
sprintf "...", trimmed($_[0]), ...;