Re: using join

2013-08-03 Thread timothy adigun
Uri, On Sun, Aug 4, 2013 at 6:58 AM, Uri Guttman wrote: > On 08/04/2013 01:44 AM, timothy adigun wrote: > > >> OR some like to write it like so: >> { >> local $" = ']['; >> print '[', "@fruits", ']'; >> } >> > > that is a poor idea. setting $" isn't needed to do a simple join. > Yes I agre

Re: using join

2013-08-03 Thread Uri Guttman
On 08/04/2013 01:44 AM, timothy adigun wrote: OR some like to write it like so: { local $" = ']['; print '[', "@fruits", ']'; } that is a poor idea. setting $" isn't needed to do a simple join. but what no one has said is a more direct way to do this. you need map and join but it is muc

Re: using join

2013-08-03 Thread timothy adigun
On Sun, Aug 4, 2013 at 6:28 AM, timothy adigun <2teezp...@gmail.com> wrote: > > Hi, > You want to read: > > On Sun, Aug 4, 2013 at 5:59 AM, *Shaji Kalidasan* wrote: > >> Greetings, >> >> I am facing some difficulty using join to display the array elements >> >> Here is the code snippet >> >> [code

Re: using join

2013-08-03 Thread *Shaji Kalidasan*
Greetings, Thanks Timothy for emphasising the importance of brackets.   best, Shaji --- Your talent is God's gift to you. What you do with it is your gift back to God. -

Re: using join

2013-08-03 Thread *Shaji Kalidasan*
Greetings, Thanks Michael for your detailed explanation. best, Shaji --- Your talent is God's gift to you. What you do with it is your gift back to God. --

Re: using join

2013-08-03 Thread timothy adigun
Hi, You want to read: On Sun, Aug 4, 2013 at 5:59 AM, *Shaji Kalidasan* wrote: > Greetings, > > I am facing some difficulty using join to display the array elements > > Here is the code snippet > > [code] > use strict; > use warnings; > > my @fruits = qw/apple mango orange banana guava/; > > #pri

using join

2013-08-03 Thread *Shaji Kalidasan*
Greetings, I am facing some difficulty using join to display the array elements Here is the code snippet [code] use strict; use warnings; my @fruits = qw/apple mango orange banana guava/; #print '[', join '][', @fruits; #print ']'; print '[', join '][', @fruits, ']'; best, [/code] [output] [