On Sun, 4 Aug 2013 10:40:47 +0100, timothy adigun wrote: > See the usage of "join", `perldoc -f join`, what you wanted is > my $str = join '', map "[$_]", @fruits; > say $str; Thanks Timothy, It was only after I copied join '', map "[$_]", @fruits; to the clipboard & entered it in a text editor, that I realised that the '' after "join" are two single quotes and not one double quote.
-- Peter Gordon, [email protected] on 08/04/2013 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
