JE::Ob...Boolean(3pm)
π JE::Object::Boolean π
okay bestie, so this is the manual page for JE::Object::Boolean, which lives in the User Contributed Perl Documentation section (that's the 3pm part, iykyk). it's a whole JavaScript Boolean object class and it is literally here to serve.
β¨ NAME β¨
JE::Object::Boolean β the JavaScript Boolean object class, and yes she is the object version, not the primitive one. we'll get to that. π
πΈ SYNOPSIS πΈ
here's the vibe in code, no notes:
use JE;
$j = new JE;
$js_bool_obj = new JE::Object::Boolean $j, 1;
$perl_bool = $js_bool_obj->value;
"$js_bool_obj"; # true
look at her go. stringifies to true, gives you value back, all of it. π
π¦ DESCRIPTION π¦
so this class implements JavaScript Boolean objects for JE. that's the whole gig, and she does it beautifully.
now here's the tea you actually need: don't mix her up with JE::Boolean. that module is out here implementing primitive boolean values β the raw little true/false vibes. this module is the one implementing the objects. primitives vs. objects, two different girls, two different jobs, both iconic. periodt. π
π METHODS π
okay so for the descriptions of most of the methods, go read JE::Types β that's where the full rundown lives. only the stuff that's specific to JE::Object::Boolean is getting explained right here in this section, because that's what this page is for.
β value
returns a Perl scalar, and it's either 1 or the empty string β well, technically !1, but who's counting. π
π SEE ALSO π
go give these a read too, they're all part of the family:
JEJE::TypesJE::ObjectJE::Boolean
π heads up bestie: if you came here looking for primitive booleans, you're in the wrong house. JE::Boolean is that way. this page is objects only, no cap.
and that's the page!! this was written for perl v5.36.0, dated 2023-08-25, and yes the footer is out here calling it JE::Ob...Boolean(3pm) because even the manual page header couldn't fit her whole name. truncated name, full slay. π«Άβ¨
π¦ where this page comes from
- debian trixie: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libje-perl 0.066-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms