Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: No Pause on Elsif in Debugger

by matija (Priest)
on Jul 23, 2004 at 05:10 UTC ( [id://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>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found