In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
wrote:

> > [EMAIL PROTECTED] said:
> > > dan radom <[EMAIL PROTECTED]> said:

> > You have a logic error.  The if test should be:

> > if (! ( $status eq 1 || $status eq 2)) {
> 
> Well, I know better than that.  Should be "=" not "eq".

the numeric comparison operator is ==, however eq
works as well, or even better, since the string comparison
might show that they are not the same.  consider:

    $a = '123fred';
    $b =  123;

    print "They match numerically.\n"    if $a == $b;
    print "They match asciibetically.\n" if $a eq $b;

-- 
brian d foy <[EMAIL PROTECTED]> - Perl services for hire
CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html
Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html


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

Reply via email to