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.
See `perldoc -f print` for details.#!/usr/bin/perl use strict; use warnings; my $a = ( print "Hello world\n" ); print "The answer is $a\n"; __END__
In Section
Seekers of Perl Wisdom