And the clouds parted, and Jeff 'japhy' Pinyan said...
> 
> Well, your regex is matching either a digit, a -, or a + as the first
> character in $diff.  If you wanted to match a POSITIVE number, you'd be
> better with /^+?\d/, but WHY are you using a regex for a MATH problem?
> 
>   if ($diff > 0) { ... }
> 

Bah.  That's the trouble with starting a reply, getting otherwise occupied
before completing it, and then sending it in late.

What he said.  <:)


  /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
 | Brian Gerard                      We now return to our regularly       |
 | First initial + 'lists'             scheduled flame-throwing.          |
 | at technobrat dot com                                                  |
  \______________________________________________________________________/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to