When you are running a perl script in the debugger, do not expect wantarray() to return the same thing it would if not running in the debugger.
If you break execution at a breakpoint, wantarray() seems to return 1 when it wouldn't otherwise.
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.