One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
perl
/
vendor
/
lib
/
Test
/
Deep
/
Edit File:
Shallow.pm
use strict; use warnings; package Test::Deep::Shallow; use Test::Deep::Cmp; use Scalar::Util qw( refaddr ); sub init { my $self = shift; my $val = shift; $self->{val} = $val; } sub descend { my $self = shift; my $got = shift; my $exp = $self->{val}; my $ok; if (!defined $got and !defined $exp) { $ok = 1; } elsif (defined $got xor defined $exp) { $ok = 0; } elsif (ref $got and ref $exp) { $ok = refaddr($got) == refaddr($exp); } elsif (ref $got xor ref $exp) { $ok = 0; } else { $ok = $got eq $exp; } return $ok; } 1;
Simpan