in reply to Climbing Mt. Perlcritic -- Switch statements
Here you have an if and then another if than can only be executed if the first if is true.
reduces the "if" indentation level by one. And moves this action that happens on /go/ "no matter what" up a level at the expense of testing it again. I'm curious as to how that would be "scored"?if ( /go/ && exists $files{$file}) { push @PLACE, @batch; delete $files{$file}; } if (/go/) { @batch=(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Climbing Mt. Perlcritic -- Switch statements
by chexmix (Hermit) on Mar 25, 2009 at 21:43 UTC |