Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: No Pause on Elsif in Debugger

by matija (Priest)
on Jul 23, 2004 at 05:10 UTC ( #376799=note: print w/ replies, xml ) Need Help??


in reply to Re: No Pause on Elsif in Debugger
in thread No Pause on Elsif in Debugger

Um, you're missing something, too. Take the code:

if ( 0 ) { warn "a"; } elsif (1) { warn "b"; } else { warn "c"; }
You will see this execution:
main::(/tmp/foo:12): if ( 0 ) { DB<1> n main::(/tmp/foo:15): warn "b"; DB<1> n b at /tmp/foo line 15.
So in an elsif chain, you always see just the first condition, not the first matching condition as your post states.

20040725 Edit by ysth: correct <code> to </code>


Comment on Re^2: No Pause on Elsif in Debugger
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2015-07-30 08:33 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 (270 votes), past polls