in reply to Re: A new FALSEness
in thread A new FALSEness

More particularly, the statement
    return if $target < 0 || @$treasures == 0;
returns undef in scalar context and the empty list  () in list context.

Both of these return values evaluate as false, so this statement returns a false value regardless of the context in which the function was called.

Replies are listed 'Best First'.
Re^3: A new FALSEness
by Anomynous Monk (Scribe) on Mar 04, 2009 at 03:12 UTC
    But "false" is a scalar concept. Any boolean test is scalar context.