**Description** <!-- A clear and concise description of what the bug is. --> `return sum map { ... } @list` seems to compile OK under strict without the import of `List::Util::sum` and returns a filehandle and a mapped list. **Steps to Reproduce** This program shows the behavior: ``` use warnings; use strict; use Data::Dumper; # use List::Util qw{ sum }; sub xx { return sum map { $_ + 1 } 1 .. 5 } print Dumper(xx); ``` The actual error occurs only after you remove `return`. Removing `map` causes it to report a warning, but it still runs. <!-- A one-liner or script to reproduce the issue. --> **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> I expected to get an error about invalid bareword under strict mode, same as without `return`. **Perl configuration** Behavior is consistent on both perl 5.10.1 and 5.38.2.