in reply to
Any difference in conditionals?
The first one is harder to read. I choose the first one never, the second one always. (Sometimes more complex logic justifies nested conditionals.)
Comment on
Re: Any difference in conditionals?
Replies are listed 'Best First'.
Re^2: Any difference in conditionals?
by
PhilHibbs
(Hermit)
on Apr 28, 2004 at 15:47 UTC
I prefer
print "Here\n" if $x1 and $x2;
for most circumstances.
[reply]
[d/l]
In Section
Seekers of Perl Wisdom