---
name: "CGI::Application::Plugin::Authentication::Driver::Filter::strip"
section: "3pm"
platform: "linux"
package: "libcgi-application-plugin-authentication-perl"
version: "0.25+~cs0.5-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CGI::Application::Plugin::Authentication::Driver::Filter::strip"
---

# CGI::Application::Plugin::Authentication::Driver::Filter::strip(3pm)

Filter that strips whitespace from the beginning and end of the string

## 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)](/perl/1.md)

## 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.
