| 1 | package Froody::Argument::Trim; | ||
| 2 | |||
| 3 | 18 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 18 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 18 | ▶ | use base qw(Froody::Argument); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 17 | ▶ | sub type { |
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
documented
| |||
| 9 | 17 | "trim"; | |
| 10 | } | ||
| 11 | |||
| 12 | 3 | ▶ | sub process { |
|
Subroutine
process: called CC=1 SCAR=0.0
Pod
documented
| |||
| 13 | 3 | my ($self, $param, $check ) = @_; | |
| 14 | |||
| 15 | 3 | $param =~ s/^\s+//; | |
| 16 | 3 | $param =~ s/\s+$//; | |
| 17 | |||
| 18 | 3 | return $param; | |
| 19 | } | ||
| 20 | |||
| 21 | 18 | 1; | |
| 22 | __END__ | ||