Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Trying to understand (caller($i))[4], a.k.a. $hasargs [solution]

by ikegami (Pope)
on Feb 14, 2012 at 06:47 UTC ( #953634=note: print w/ replies, xml ) Need Help??


in reply to Trying to understand (caller($i))[4], a.k.a. $hasargs

I believe the problem can be solved by changing

my @caller = CORE::caller($i++) or return;
to
my @caller = CORE::caller() eq 'DB' ? do { package DB; CORE::caller($i++) } : CORE::caller($i++) or return;


Comment on Re: Trying to understand (caller($i))[4], a.k.a. $hasargs [solution]
Select or Download Code
Re^2: Trying to understand (caller($i))[4], a.k.a. $hasargs [solution]
by Oberon (Monk) on Feb 14, 2012 at 08:18 UTC

    Excellent! Yes, that stops the error entirely. I'll submit it to DC as a patch. Thanks for the code.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://953634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2015-07-06 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls