[Omaha.pm] am I drunk.... code reduction?

Dave M dave.nerd at gmail.com
Tue Aug 15 16:15:09 PDT 2006


On 8/15/06, Jay Hannah <jhannah at omnihotels.com> wrote:
>
> Am I drunk? Doesn't
>
>    if ((not $row[0]  =~ /RMCHG/) and (not $row[0]  =~ /RMCHRG/) and (not
> $row[0]  =~ /REUN/)) {
>       if ($row[0] eq 'RMADJ') {
>          # Do something...
>       }
>    }
>
> Reduce to
>
>    if ($row[0] eq 'RMADJ') {
>       # Do something...
>    }
>
> ?

I vote yes. :)


More information about the Omaha-pm mailing list