On Thu, 13 Nov 2003 18:15:40 -0500, Nandita Mullapudi wrote:
> 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?

That's pretty irrelevant in your case;  You're using a cannon to get rid
of your neighbours cat.

As long as $diff is numeric, you can use this code;

  if ( $diff > 0 ) {
      # ...
  }


-- 
Tore Aursand <[EMAIL PROTECTED]>


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

Reply via email to