Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Making program readableby ravi45722 (Pilgrim) |
on Oct 06, 2015 at 10:47 UTC ( [id://1143909]=note: print w/replies, xml ) | Need Help?? |
I replaced the my if-else loops with these.
Its decreased 42 lines but its increasing the execution time. I see this through benchmark. For if-else loop it gives the code took:52 wallclock secsAfter replacing the code with foreach the code took:67 wallclock secs
In Section
Seekers of Perl Wisdom
|
|