Cees Hek > CGI-Application-Plugin-Authentication-0.14 > CGI::Application::Plugin::Authentication::Driver::Filter::strip

Download:
CGI-Application-Plugin-Authentication-0.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  2
Stalled  1
View/Report Bugs
Source   Latest Release: CGI-Application-Plugin-Authentication-0.20

NAME ^

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

METHODS ^

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 ^

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

AUTHOR ^

Cees Hek <ceeshek@gmail.com>

LICENCE AND COPYRIGHT ^

Copyright (c) 2005, SiteSuite. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: