in reply to Re: In what order is a compound IF evaluated?
in thread In what order is a compound IF evaluated?
Perl evaluates left to right
While it's certainly true that the short-circuit operators in Perl are left-to-right, which is what the OP mostly wanted to know at the moment, it might be saying to much to say that Perl evaluates left-to-right. It depends on your operators...
print for map { $$_[0] } sort { lc $a->{name} cmp lc $b->{name} } grep { ref $_ } map { [$_, dblookup($_)] } <STDIN> unless grep { /--ignorestdin/ } @ARGV;
Admittedly, the above is _somewhat_ atypical code.
|
|---|