Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2015-11-25 13:33 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (675 votes), past polls