concider:
if(not ($foo == 1) ) { print "foo" }

it prints 'foo' just as expected... one can use 'not' without too many worries...

just remember 2 things:
! has higher precedence (ie, it 'binds tighter') so parentheses would be required
if you use ! here instead of 'not'
further more, ! is a unary operator used in combination with others as well ( !~
!= and friends). Here you CAN NOT just use 'not~' or 'not= '

hope this clears things up,

Jos Boumans


Tim Musson wrote:

> Hey Jos,
>
> I believe you have to use ! instead of "not" also...
>
> Wednesday, June 20, 2001, 6:05:39 PM, you wrote:
>
> JIB> i'd say, there is no 'like' operator...
>
> >> This isn't working for me.  Help please.  What is wrong with the second if
> >> statement
> >>
> >>   while ( ($timestamp, $report_type, $game_name, $data_name, $data_value)
> JIB> =
> >> $ora_sth->fetchrow_array)
> >> {
> >> if (($data_name eq 'min') || ($data_name eq 'time')) {$data_value =
> >> $data_value * 1440}
> >> if (not ($report_type like  'unique'))
> >> {       %myvar =(       $report_type,
> >>                         $data_name,
> >>                         $data_value,
> >>                 );
> >>         $dname{$report_type} = $data_name;
> >>         $dvalue{$report_type} = $data_value + $dvalue{$report_type};
>
> --
> [EMAIL PROTECTED]
> Using The Bat! eMail v1.53d
> Windows NT 5.0.2195 (Service Pack 1)
> Why is it that to stop Windows 2000, you still have to click on "Start"?

Reply via email to