From: Peter Scott On Wed, 16 Dec 2009 17:47:16 -0600, Bryan R Harris wrote: >> Okay, here's one I struggle with often -- is one of these better than >> the other? >> >> ************************************** >> A. >> if ( isFlat($tire) ) { changeTire($tire); } >> >> B. >> checkFlatAndChangeTireIfNecessary($tire); >> >> ************************************** > > Ah, a recovering Java programmer :-) > > Seriously, the letsRunAsManyWordsAsPossibleTogether style bugs the heck > out of me. The Perlish style (perldoc perlstyle) would be
There is one other question about B. that I haven't seen mentioned in this thread. There may be other reasons why you would change that tire. Would you really want it bound that tightly with CheckFlat() when you need to add them? Bob McConnell -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/