Zane C. Bowers-Hadley > Data-AnyBoolean-0.0.0 > Data::AnyBoolean

Download:
Data-AnyBoolean-0.0.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.0.0   Source  

NAME ^

Data::AnyBoolean - Check none Perl boolean values.

VERSION ^

Version 0.0.0

SYNOPSIS ^

    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 ^

anyBool

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

AUTHOR ^

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

BUGS ^

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 ^

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

    perldoc Data::AnyBoolean

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2009 Zane C. Bowers, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: