Parse::JCONF::Boolean - boolean constants for Parse::JCONF
use Parse::JCONF; use Parse::JCONF::Boolean qw(TRUE FALSE); my $res = Parse::JCONF->new(autodie => 1)->parse_file('/dev/random'); if ($res->{bool_value} == TRUE) { print "this is boolean true"; } elsif ($res->{bool_value} == FALSE) { print "this is boolean false"; }
This package provides two constants: TRUE and FALSE. This constants may be exported on request. You can compare value parsed by JCONF parser with this constants to determine that value is of boolean type (was true/false in JCONF).
Parse::JCONF
Copyright Oleg G <oleg@cpan.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Parse::JCONF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::JCONF
CPAN shell
perl -MCPAN -e shell install Parse::JCONF
For more information on module installation, please visit the detailed CPAN module installation guide.