manan.patel has asked for the wisdom of the Perl Monks concerning the following question:
Hello all,
i have a hash and from that i access the key values(string) from it. i want to insert a "-" at starting of each and every value(string).
suppose foreach interative $z contain (to) than (from) like that way. now i want to store that scaler value in to one array called @ab. i want to store that scaler value looks like in array is ( -to -from)... please help me for this.. Thanks for tour timeforeach $z ( %abc) { push (@ab, $z}); $ab = join "\-",@ab; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to use join my array ?
by Bloodnok (Vicar) on May 01, 2014 at 10:22 UTC | |
Re: how to use join my array ?
by rnewsham (Curate) on May 01, 2014 at 10:24 UTC | |
Re: how to use join my array ?
by sudevshetty (Initiate) on May 01, 2014 at 10:21 UTC | |
Re: how to use join my array ?
by Laurent_R (Canon) on May 01, 2014 at 17:02 UTC | |
Re: how to use join my array ?
by sudevshetty (Initiate) on May 01, 2014 at 10:18 UTC |
Back to
Seekers of Perl Wisdom