| 1 | package Regexp::Common::whitespace; | ||
| 2 | |||
| 3 | 71 | ▶ | use 5.10.0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 71 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 71 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 71 | ▶ | no warnings 'syntax'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 71 | ▶ | use Regexp::Common qw /pattern clean no_defaults/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 71 | our $VERSION = '2024080801'; | |
| 12 | |||
| 13 | pattern name => [qw (ws crop)], | ||
| 14 | create => '(?:^\s+|\s+$)', | ||
| 15 | 4 | ▶ | subs => sub {$_[1] =~ s/^\s+//; $_[1] =~ s/\s+$//;} |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 16 | 71 | ; | |
| 17 | |||
| 18 | |||
| 19 | 71 | 1; | |
| 20 | |||
| 21 | __END__ | ||