http://qs321.pair.com?node_id=583348


in reply to Re^2: process array with while loop
in thread process array with while loop

Except that print is not a void context. Therefore the map will create a list.
#!/usr/bin/perl use strict; use warnings; my $a = ( print "Hello world\n" ); print "The answer is $a\n"; __END__
See `perldoc -f print` for details.