in reply to Re: Re: if and
in thread if and

Assuming you're discussing (($x1 eq $y1) and ($x2 eq $y2)) vs. ($x1 eq $y1 && $x2 eq $y2)

Since, they deparse to the same thing, how can one be a "failure"? Are you claiming that they do different things, or that one is harder to understand and maintain?

% perl -MO=Deparse -e'if($x1 eq $y1 && $x2 eq $y2){}' if ($x1 eq $y1 and $x2 eq $y2) { (); } % perl -MO=Deparse -e'if(($x1 eq $y1) and ($x2 eq $y2)){}' if ($x1 eq $y1 and $x2 eq $y2) { (); }

-Blake

Replies are listed 'Best First'.
Re: Re3: if and
by vek (Prior) on Feb 20, 2002 at 16:23 UTC
    I was merely commenting on the fact that Anonymous Monk stated that the code didn't work, I was just showing that the code did work. Whether or not there's a flaw in the developer logic is a seperate subject entirely.

    But rob_au++ and blakem++ regardless.

    Update: sorry blakem in a pre-caffeine haze I replied to your comment, this was meant to be a reply to rob_au's comment. Please disregard.