in reply to Is map's sub block really being evaluated in list context? wantarray() returns undef..
wantarray's documentation says it all really. wantarray is sensitive to the "subroutine or eval" context and is "unspecified in the top level of a file". map isn't a sub or eval so doesn't provide any new context for wantarray.
|
|---|