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__
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: process array with while loop
by davorg (Chancellor) on Nov 14, 2006 at 14:04 UTC |
In Section
Seekers of Perl Wisdom