in reply to Re^3: Bitten by the || bug (@{})
in thread Bitten by the || bug

You've misused wantarray. It tells the context in which the current subroutine was called, not in what context wantarray was called.

> perl sub context { warn !defined wantarray ? "void" : wantarray ? "list" : "scalar", $/; } @{context()}; <EOF> scalar

- tye