in reply to Re^2: Why are "a ||= b" and "a = a || b" different?
in thread Why are "a ||= b" and "a = a || b" different?

void is false
my $w = wantarray; $w = defined $w ? ($w ? 'list' : 'scalar') : 'void'; carp "wantarray : $w ";

Replies are listed 'Best First'.
Re^4: Why are "a ||= b" and "a = a || b" different?
by diotalevi (Canon) on Mar 05, 2007 at 15:48 UTC

    Why copy the value of wantarray into a temporary? You're just adding visual and other overhead.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊