Danwifi has asked for the wisdom of the Perl Monks concerning the following question:
$v = ${$pairs{$ca}}[0]; if ($types{$ca}) { $v = 0 unless defined $v; OP: { $r &= $v < $cv, last OP if $co eq '<'; $r &= $v <= $cv, last OP if $co eq '<='; $r &= $v != $cv, last OP if $co eq '!='; $r &= $v >= $cv, last OP if $co eq '>='; $r &= $v > $cv, last OP if $co eq '>'; $r &= $v == $cv; } } else { $v = '' unless defined $v; OP: { $r &= $v lt $cv, last OP if $co eq '<'; $r &= $v le $cv, last OP if $co eq '<='; $r &= $v ne $cv, last OP if $co eq '!='; $r &= $v ge $cv, last OP if $co eq '>='; $r &= $v gt $cv, last OP if $co eq '>'; $r &= $v eq $cv; }
20050121 Janitored by Corion: Added code tags
Retitled by davido.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What does 'last OP;' do?
by ikegami (Patriarch) on Jan 21, 2005 at 21:12 UTC | |
by ikegami (Patriarch) on Jan 21, 2005 at 21:24 UTC | |
by TomDLux (Vicar) on Jan 22, 2005 at 21:29 UTC | |
|
Re: What does 'last OP;' do?
by Solo (Deacon) on Jan 21, 2005 at 21:12 UTC | |
|
Re: What does 'last OP;' do?
by ww (Archbishop) on Jan 21, 2005 at 21:15 UTC | |
|
Re: What does 'last OP;' do?
by atcroft (Abbot) on Jan 21, 2005 at 21:27 UTC |