Group
Extension

Matches 3

Locale-Unicode ( J/JD/JDEGUEST/Locale-Unicode-v0.4.0.tar.gz, JDEGUEST, 2025; MetaCPAN )
Locale-Unicode/lib/Locale/Exception.pod ( view source; MetaCPAN )
nd call L<perlfunc/"die"> with it.

=head2 TO_JSON

Special method called by L<JSON> to transform this object into a string suitable to be added in a json data.

=head2 type

Set or get the error type
STORABLE_freeze

=for Pod::Coverage STORABLE_thaw

=for Pod::Coverage THAW

=for Pod::Coverage TO_JSON

Serialisation by L<CBOR|CBOR::XS>, L<Sereal> and L<Storable::Improved> (or the legacy L<Storable
Locale-Unicode ( J/JD/JDEGUEST/Locale-Unicode-v0.4.0.tar.gz, JDEGUEST, 2025; MetaCPAN )
Locale-Unicode/lib/Locale/Boolean.pod ( view source; MetaCPAN )
h =
    {
        name => 'John Doe',
        active => $bool,
    };
    # Converting to json
    print( JSON->new->encode( $hash ), "\n" );
    # Would result in
    {
        name: "Jogn Doe",
    
ed interchangeably as perl boolean, i.e. 1 or 0, or as L<JSON> bool, i.e. C<true> or C<false>

The code is taken and adapted from part of L<JSON> module.

=head1 CONSTRUCTOR

=head2 new

Provided with
 perl true value i.e. 1 or C<true> when added into L<JSON>

=head2 false

This returns a perl false value i.e. 0 or C<false> when added into L<JSON>

=head2 is_bool

Provided with a value and this ret
Locale-Unicode ( J/JD/JDEGUEST/Locale-Unicode-v0.4.0.tar.gz, JDEGUEST, 2025; MetaCPAN )
Locale-Unicode/lib/Locale/Unicode.pm ( view source; MetaCPAN )
se
    {
        $new = CORE::bless( $hash => $class );
    }
    CORE::return( $new );
}

sub TO_JSON { return( shift->as_string ); }

# NOTE: Locale::Unicode::Boolean class
package Locale::Unicode::
 $self );
    }
    else
    {
        CORE::return( $class->new( $str ) );
    }
}

sub TO_JSON
{
    # JSON does not check that the value is a proper true or false. It stupidly assumes this is a str
se
    {
        $new = CORE::bless( $hash => $class );
    }
    CORE::return( $new );
}

sub TO_JSON { return( shift->as_string ); }

{
    # NOTE: Locale::Unicode::NullObject class
    package
    

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.