Yes - or at least the way I interpret this result.
$ perl -e "map {0} <>" big_data_file Out of memory! $ perl -e "map {0} 1 .. 1000000000" Out of memory!
Can one ask if the memory is running out because Perl is trying to save the map output. However, I understand that Perl is optimized to avoid this work whenever map is called in the void context. For a specific example, see the discussion in this question .
Perhaps the best example is :
$ perl -e "sub nothing {} map nothing(), <>" big_data_file Out of memory!
Based on the comments, it seems that the question is motivated by the desire for compact syntax when processing big data.
open(my $handle, '<', 'big_data_file') or die $!;
source share