http://www.perlmonks.org?node_id=978879


in reply to Re: if statement consolidation
in thread if statement consolidation

Note that the original code did not modify any of the variables unless $h has one of a list of certain values. If that's important behavior, there should be an if-statement guarding your code.

Replies are listed 'Best First'.
Re^3: if statement consolidation
by choroba (Cardinal) on Jun 28, 2012 at 16:38 UTC
    Thanks, added.