Data::AnyBoolean - Check none Perl boolean values.
Version 0.0.0
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.
This returns '0' or '1' after checking the value passed for the boolean check.
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
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.
bug-data-anybollean at rt.cpan.org
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/
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.
To install Data::AnyBoolean, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::AnyBoolean
CPAN shell
perl -MCPAN -e shell install Data::AnyBoolean
For more information on module installation, please visit the detailed CPAN module installation guide.