Data::AnyBoolean - Check none Perl boolean values.


Data-AnyBoolean documentation  | view source Contained in the Data-AnyBoolean distribution.

Index


NAME

Top

Data::AnyBoolean - Check none Perl boolean values.

VERSION

Top

Version 0.0.0

SYNOPSIS

Top

    use Data::AnyBoolean;

    if(anyBool( 'yes' )){
        print 'True'
    }
    if(anyBool( 'no' )){
        print 'True'
    }

Any of the items below are considered false.

    undef
    /^[Nn][Oo]$/
    /^[Ff][Aa][Ll][Ss][Ee]$/
    /^[Ff]$/
    /^[Oo][Ff][Ff]$/

Any of the items below are considered true.

    /^[Yy][Ee][Ss]$/
    /^[Tt][Rr][Uu][Ee]$/
    /^[Tt]$/
    /^[Oo][Nn]$/

If any of the above are not matched, it is evaulated as a standard Perl boolean.

FUNCTIONS

Top

anyBool

This returns '0' or '1' after checking the value passed for the boolean check.

AUTHOR

Top

Zane C. Bowers, <vvelox at vvelox.net>

BUGS

Top

Please report any bugs or feature requests to bug-data-anybollean at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-AnyBollean. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Data::AnyBoolean




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-AnyBoolean

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Data-AnyBoolean

* CPAN Ratings

http://cpanratings.perl.org/d/Data-AnyBoolean

* Search CPAN

http://search.cpan.org/dist/Data-AnyBoolean/

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


Data-AnyBoolean documentation  | view source Contained in the Data-AnyBoolean distribution.