CGI::Application::Plugin::Authentication::Driver::Filter::strip - Filter that strips whitespace from the beginning and end of the string


CGI-Application-Plugin-Authentication documentation  | view source Contained in the CGI-Application-Plugin-Authentication distribution.

Index


NAME

Top

CGI::Application::Plugin::Authentication::Driver::Filter::strip - Filter that strips whitespace from the beginning and end of the string

VERSION

Top

This document describes CGI::Application::Plugin::Authentication::Driver::Filter::strip version 0.20

METHODS

Top

filter ( undef, $string )

This strips whitespace from the beginning and end of the string and returns the result

 my $filtered = $class->filter(undef, "  foobar\t\n"); # 'foobar'




check ( undef, $string, $compare )

This will lowercase the string and compare it against the comparison string and return true or false.

 if ($class->check(undef, "  foobar\t\n", 'foobar')) {
     # they match
 }




SEE ALSO

Top

CGI::Application::Plugin::Authentication::Driver, perl(1)

AUTHOR

Top

Cees Hek <ceeshek@gmail.com>

LICENCE AND COPYRIGHT

Top


CGI-Application-Plugin-Authentication documentation  | view source Contained in the CGI-Application-Plugin-Authentication distribution.