[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



On 8/15/06, Jay Hannah <jhannah@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. :)