« blib/lib/CGI/Application/Plugin/Authentication/Driver/Filter/uc.pm
↑ Summary
blib/lib/CGI/Application/Plugin/Authentication/Driver/Dummy.pm »
| 1 | package CGI::Application::Plugin::Authentication::Driver::Filter::strip; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | sub check { | ||||||||||
| 7 | 2 | ▶ | return ( _strip( $_[2] ) eq $_[3] ) ? 1 : 0; | ||||||||
|
Subroutine
check: called CC=2 SCAR=6.9
Pod
documented
Branch: 1 branch
| |||||||||||
| 8 | } | ||||||||||
| 9 | |||||||||||
| 10 | sub filter { | ||||||||||
| 11 | 1 | ▶ | return _strip( $_[2] ); | ||||||||
|
Subroutine
filter: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | sub _strip { | ||||||||||
| 15 | 3 | ▶ | my $str = shift; | ||||||||
|
Subroutine
_strip: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 3 | $str =~ s/^\s+//; | |||||||||
| 17 | 3 | $str =~ s/\s+$//; | |||||||||
| 18 | 3 | return $str; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 2 | 1; | |||||||||
| 22 | __END__ | ||||||||||