Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.15.2.239
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
perl-Data-Dump-1.22 /
t /
[ HOME SHELL ]
Name
Size
Permission
Action
dd.t
143
B
-rw-r--r--
dollar-one.t
299
B
-rw-r--r--
dump.t
2.1
KB
-rw-r--r--
eval.t
336
B
-rw-r--r--
filtered.t
1.7
KB
-rw-r--r--
glob.t
717
B
-rw-r--r--
hash.t
844
B
-rw-r--r--
quote-unicode.t
1.53
KB
-rw-r--r--
quote.t
2.05
KB
-rw-r--r--
ref.t
368
B
-rw-r--r--
regexp.t
553
B
-rw-r--r--
scalar-obj.t
421
B
-rw-r--r--
scalar.t
549
B
-rw-r--r--
tied.t
972
B
-rw-r--r--
vstring.t
510
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tied.t
#!/usr/bin/perl -w use strict; use Test qw(plan ok); use Data::Dump qw(dump); plan tests => 4; { package MyTie; sub TIE { my $class = shift; bless {}, $class; } use vars qw(*TIEHASH *TIEARRAY *TIESCALAR); *TIEHASH = \&TIE; *TIEARRAY = \&TIE; *TIESCALAR = \&TIE; sub FIRSTKEY { return "a"; } sub NEXTKEY { my($self, $lastkey) = @_; return if $lastkey eq "d"; return ++$lastkey; } sub FETCHSIZE { return 4; } sub FETCH { my($self, $key) = @_; return "v$key" if defined $key; return "v"; } } my(%hash, @array, $scalar); tie %hash, "MyTie"; tie @array, "MyTie"; tie $scalar, "MyTie"; ok(nl(dump(\%hash)), <<EOT); { # tied MyTie a => "va", b => "vb", c => "vc", d => "vd", } EOT ok(nl(dump(\@array)), <<EOT); [ # tied MyTie "v0" .. "v3", ] EOT ok(nl(dump($scalar)), <<EOT); "v" EOT ok(nl(dump($scalar, $scalar, $scalar)), <<EOT); ("v", "v", "v") EOT sub nl { shift(@_) . "\n" }
Close