<snip href="perldoc perlop">
Symbolic Unary Operators

       Unary "!" performs logical negation, i.e., "not".  See
       also "not" for a lower precedence version of this.
</snip>

Most of the line noise logical operators have an equivalent English
operator.  These English operators (in general) have a lower precedence
than the line noise version.  This is why

open FH, $filename || die "Could not open $filename:$!";

is wrong but

open FH, $filename or die "Could not open $filename:$!";

is right.


On 21 Jun 2001 08:07:38 -0400, 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"?
> 
> 
--
Today is Boomtime, the 26th day of Confusion in the YOLD 3167
Pzat!


Reply via email to