DOKK / manpages / debian 12 / libcgi-application-plugin-authentication-perl / CGI::Application::Plugin::Authentication::Driver::Filter::strip.3pm.en
CGI::Application::Plugin::Authentication::Driver::Filter::strip(3pm) User Contributed Perl Documentation CGI::Application::Plugin::Authentication::Driver::Filter::strip(3pm)

CGI::Application::Plugin::Authentication::Driver::Filter::strip - Filter that strips whitespace from the beginning and end of the 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'

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
 }

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

Cees Hek <ceeshek@gmail.com>

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.

2022-05-23 perl v5.34.0