Madam has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perl Monks,
I have list in which i need to concat values of the list
with "=>" .Following is the code for it.
but i want to know whether i can use "map" for this one, as i am not much aware of "map" usage. Thanks in advance, Madamwhile( my ($k, $v) = each %list ) { push(@arr,$k,($v = "=>".$v)); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: use of 'map'
by blazar (Canon) on Jul 14, 2005 at 11:15 UTC | |
Re: use of 'map'
by artist (Parson) on Jul 14, 2005 at 11:17 UTC | |
Re: use of 'map'
by radiantmatrix (Parson) on Jul 14, 2005 at 13:12 UTC | |
Re: use of 'map'
by polettix (Vicar) on Jul 14, 2005 at 13:06 UTC |
Back to
Seekers of Perl Wisdom