[Omaha.pm] shorter is gooder
Dan Linder
dan at linder.org
Tue Sep 21 14:23:11 PDT 2010
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 at 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 at 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)
** *** ***** ******* *********** ************* *****************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20100921/e9a4e990/attachment.html>
More information about the Omaha-pm
mailing list