# New Ticket Created by Father Chrysostomos # Please include the string: [perl #123020] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=123020 > If x with parentheses around the lhs occurs in void context, no matter where it occurs in a sub it will propagate the context in which the sub was called: $ ./perl -lIlib -e 'sub c { print qw[void scalar list][wantarray + defined wantarray] } sub f { (c())x(c()); print "---"; } f(); $_=f(); () = f() ' void scalar --- scalar scalar --- list scalar --- That’s *weird*. But what should it do? Internally, x falls back to scalar repeat when not in list context. (It doesn’t check explicitly for scalar context.) So scalar context here would make sense. (I suspect some instances of the void context result in stack bugs.) -- Father Chrysostomos