⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
libtype-tiny-perl
/
examples
/
View File Name :
jsoncapable.pl
use strict; use warnings; use feature 'say'; BEGIN { package My::Types; use Type::Library 1.012 -utils, -extends => [ 'Types::Standard' ], -declare => 'JSONCapable'; declare JSONCapable, as Undef | ScalarRef[ Enum[ 0..1 ] ] | Num | Str | ArrayRef[ JSONCapable ] | HashRef[ JSONCapable ] ; } use My::Types 'is_JSONCapable'; my $var = { foo => 1, bar => [ \0, "baz", [] ], }; say is_JSONCapable $var;