[Israel.pm] boolean statment as sub parameter
Yitzchak Scott-Thoennes
sthoenna at efn.org
Mon Feb 23 08:31:40 PST 2009
On Sun, February 22, 2009 11:15 pm, Avishalom Shalit wrote:
> well an example for "and" is like a conditional (upon success)
>
> so do_this() and do_that() and do_the_other_thing() will only
> do_the_other_thing if the first two were successful
I meant it's hard to find a real example where it would be obviously
better to say
if (do_this() && do_that()) { do_the_other_thing() }
or
do_the_other_thing() if do_this() && do_that();
More information about the Perl
mailing list