Thanks,
-Nandita


-----Original Message-----
From: Nandita Mullapudi [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 5:16 PM
To: [EMAIL PROTECTED]
Subject: regexp matching- real simple!


This has to be really easy- but I cant get it to work: I want my script to carry out a loop only if the number stored in $diff is positive, so i say if ($diff =~m/^[-\d+]/) {blah blah} but it won't work. why? TIA -Nandita

--

   Is the number stored as a string?  Probably not.  Why not use:
   if ($diff > 0) {blah blah}

Chris.


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



Reply via email to