NAME
Hydrogen::Topic::Bool - functions from Hydrogen::Bool applied to $_
VERSION
This documentation is for Hydrogen::Topic::Bool 0.012, which is based on Sub::HandlesVia::HandlerLibrary::Bool 0.036.
FUNCTIONS
Each function implicitly operates on $_
, expecting it to be a scalar which will be treated as a boolean.
not()
Operates on $_
, which must be a scalar which will be treated as a boolean.
Returns the opposite value of the boolean.
reset()
Operates on $_
, which must be a scalar which will be treated as a boolean.
Sets the boolean to its default value, or false if it has no default.
set()
Operates on $_
, which must be a scalar which will be treated as a boolean.
Sets the value of the boolean to true.
toggle()
Operates on $_
, which must be a scalar which will be treated as a boolean.
Toggles the truth value of the boolean.
unset()
Operates on $_
, which must be a scalar which will be treated as a boolean.
Sets the value of the boolean to false.
EXPORT
No functions are exported by this module by default. To import them all (this is usually a bad idea), use:
use Hydrogen::Topic::Bool -all;
To import a particular function, use:
use Hydrogen::Topic::Bool 'set';
To rename functions:
use Hydrogen::Topic::Bool 'set' => { -as => 'myfunc' };
See Exporter::Tiny::Manual::Importing for more hints on importing.
BUGS
Please report any bugs to http://github.com/tobyink/p5-hydrogen/issues.
SEE ALSO
Hydrogen, Hydrogen::Bool, Hydrogen::Curry::Bool, Sub::HandlesVia::HandlerLibrary::Bool.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2022 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.