
Laurent_R
Enthusiast
Dec 1, 2012, 3:02 PM
Views: 1780
|
|
Re: [gevni] Problem in using split and join function!!
|
|
|
Not at all, it is completely generic. Exactly the same code with a different input array:
my @new_array= qw/ 2_2_2_2 3_3 4_4_4 1_1_1 17_17_17 6_6_6_6_6 8_8/; my @resplit = map {split /_/, $_} @new_array; print "@resplit"; # prints : 2 2 2 2 3 3 4 4 4 1 1 1 17 17 17 6 6 6 6 6 8 8 Please ask if you have trouble understanding the logic.
(This post was edited by Laurent_R on Dec 1, 2012, 3:08 PM)
|