David M. Lloyd writes:
: On Thu, 21 Feb 2002, Sam Vilain wrote:
: 
: > I can't count the number of times I've had to do something like:
: >
: >   if (defined $foo and $foo ne "bar") { }
: >
: > to avoid my program writing garbage to STDERR.
: 
: Of course you will now be able to say:
: 
: if ($foo // "" ne "bar") { }
: 
: Right?

Not quite.  You'd have to say:

    if ($foo // "") ne "bar" { }

That's presuming we leave // with the same precedence as ||.

Larry

Reply via email to