… | |
… | |
168 | These CBOR values become C<CBOR::XS::true> and C<CBOR::XS::false>, |
168 | These CBOR values become C<CBOR::XS::true> and C<CBOR::XS::false>, |
169 | respectively. They are overloaded to act almost exactly like the numbers |
169 | respectively. They are overloaded to act almost exactly like the numbers |
170 | C<1> and C<0>. You can check whether a scalar is a CBOR boolean by using |
170 | C<1> and C<0>. You can check whether a scalar is a CBOR boolean by using |
171 | the C<CBOR::XS::is_bool> function. |
171 | the C<CBOR::XS::is_bool> function. |
172 | |
172 | |
173 | =item null |
173 | =item Null, Undefined |
174 | |
174 | |
175 | A CBOR Null value becomes C<undef> in Perl. |
175 | CBOR Null and Undefined values becomes C<undef> in Perl (in the future, |
|
|
176 | Undefined may raise an exception). |
176 | |
177 | |
177 | =back |
178 | =back |
178 | |
179 | |
179 | |
180 | |
180 | =head2 PERL -> CBOR |
181 | =head2 PERL -> CBOR |