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, pete...@netspace.net.au on 08/04/2013



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to