http://www.perlmonks.org?node_id=273876


in reply to Re: Anyone use "xor" in conditionals?
in thread Anyone use "xor" in conditionals?

Wouldn't that (next if -d $dir1 xor -d $dir2) be exactly the same as next if -d $dir1 == -d $dir2 ? Why would you choose xor over that?

Replies are listed 'Best First'.
Re: Anyone use "xor" in conditionals?
by Abigail-II (Bishop) on Jul 14, 2003 at 06:11 UTC
    Because I have warnings turned on.

    Abigail

    A reply falls below the community's threshold of quality. You may see it by logging in.