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

Re: [Omaha.pm] shorter is gooder



Are those the same?  The first "/ZUPSUITE/" could find it anywhere in the line, but the second one forces it to be at the beginning of the line, correct?

(Though if your data won't have "ANOTHERZUPSUITE", then this isn't a problem...)

DanL

2010/9/20 Jay Hannah <jhannah@omnihotels.com>

Another tiny code cleanup...

 

j

 

 

 

BEFORE

   next if (! $packageCode or $packageCode =~ /ZUPSUITE/ or

       substr( $packageCode, 0, 1 ) ne "Z" );

 

AFTER

   next if (!$packageCode or $packageCode =~ /^([^Z]|ZUPSUITE)/);


_______________________________________________
Omaha-pm mailing list
Omaha-pm@pm.org
http://mail.pm.org/mailman/listinfo/omaha-pm



--
***************** ************* *********** ******* ***** *** **
"Quis custodiet ipsos custodes?"
    (Who can watch the watchmen?)
    -- from the Satires of Juvenal
"I do not fear computers, I fear the lack of them."
    -- Isaac Asimov (Author)
** *** ***** ******* *********** ************* *****************