I believe the problem can be solved by changing
tomy @caller = CORE::caller($i++) or return;
my @caller = CORE::caller() eq 'DB' ? do { package DB; CORE::caller($i++) } : CORE::caller($i++) or return;
In reply to Re: Trying to understand (caller($i))[4], a.k.a. $hasargs [solution]
by ikegami
in thread Trying to understand (caller($i))[4], a.k.a. $hasargs
by Oberon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |