CGI::Application::Plugin::Authentication::Driver::Filter::uc - Uppercase Filter


CGI-Application-Plugin-Authentication documentation Contained in the CGI-Application-Plugin-Authentication distribution.

Index


Code Index:

NAME

Top

CGI::Application::Plugin::Authentication::Driver::Filter::uc - Uppercase Filter

VERSION

Top

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

METHODS

Top

filter ( undef, $string )

This simply uppercases the string and returns it

 my $filtered = $class->filter(undef, 'foobar'); # FOOBAR




check ( undef, $string, $compare )

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

 if ($class->check(undef, 'foobar', '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 Contained in the CGI-Application-Plugin-Authentication distribution.

package CGI::Application::Plugin::Authentication::Driver::Filter::uc;

use strict;
use warnings;
our $VERSION = '0.20';

sub check {
    return ( uc $_[2] eq $_[3] ) ? 1 : 0;
}

sub filter {
    return uc $_[2];
}

1;
__END__