in reply to Re: interpretation of "neither...nor"

how about
print "Editor not defined" or $ENV{EDITOR} or $ENV{VISUAL}
untested
the hardest line to type correctly is: stty erase ^H

Replies are listed 'Best First'.
Re^3: interpretation of "neither...nor"
by Errto (Vicar) on Jun 18, 2007 at 02:13 UTC
    Won't work. As per perlop this parses to
    ((print "Editor not defined") or $ENV{EDITOR}) or $ENV{VISUAL}
    hence "Editor not defined" will always be printed and the result will always be true.