DOKK / manpages / debian 11 / libje-perl / JE::Object::Boolean.3pm.en
JE::Object::Boolean(3pm) User Contributed Perl Documentation JE::Object::Boolean(3pm)

JE::Object::Boolean - JavaScript Boolean object class

  use JE;
  $j = new JE;
  $js_bool_obj = new JE::Object::Boolean $j, 1;
  $perl_bool = $js_bool_obj->value;
  "$js_bool_obj";  # true

This class implements JavaScript Boolean objects for JE. The difference between this and JE::Boolean is that that module implements primitive boolean values, while this module implements the objects.

See JE::Types for descriptions of most of the methods. Only what is specific to JE::Object::Boolean is explained here.

Returns a Perl scalar, either 1 or the empty string (well, actually !1).

2021-01-08 perl v5.32.0