CGI::A...::strip(3pm)

πŸ“¦
version 0.25+~cs0.5 Β· 5 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

okay so bestie, this page is straight out of the User Contributed Perl Documentation, and the main character is CGI::Application::Plugin::Authentication::Driver::Filter::strip β€” a filter that strips whitespace from the beginning and end of the string. It's giving tiny but essential, and honestly? obsessed. πŸ’…βœ¨


✨ METHODS ✨

πŸ’– filter ( undef, $string ) πŸ’–

This strips whitespace from the beginning and end of the string and returns the result. That's the whole assignment, and it ate. 🫢

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. Literally a vibe check, but for strings. πŸ‘‘

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> β€” iconic author behavior, no notes. πŸ’œ


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.


okay bestie, that's the whole page. Source/version/date check: perl v5.38.2, 2024-06-29, manual name CGI::A...::strip(3pm). Stay filtered and stay fabulous. πŸ’–βœ¨

πŸ“¦ where this page comes from