Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: No Pause on Elsif in Debugger

by QM (Parson)
on Sep 29, 2006 at 20:35 UTC ( #575601=note: print w/replies, xml ) Need Help??


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

I started to say
If I have a long if/elsif/elsif/... chain, then setting breakpoints inside every block is painful (especially when repeating the same breakpoints while doing the debug/edit loop).
However, more than 3 is a good indicator I'm doing something wrong, and should rethink my attack.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^5: No Pause on Elsif in Debugger
by pemungkah (Priest) on Nov 08, 2006 at 01:01 UTC
    Yes indeed. After more than two or three, it's time to consider a hash and coderefs.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://575601]
help
Chatterbox?
[shmem]: hmm...
[shmem]: Lady_Aleena: perl -MMP3::Tag -MFile::Find -le 'find(sub{if($File ::Find::name=~/\. mp3$/){$sum+=MP3:: Tag->new($_)-> interpolate("\%S ")} }, "Music"); print "total seconds: $sum"'

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-04-23 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.