in reply to how to assign map results to arrays
How about:
@ar1 = split(';', $num1); @ar2 = split(';', $num2);
Update: if you want to know how to get
then you want:# given: @num = ("1;2;3", "4;5;6"); $array[0] = [1, 2, 3]; $array[1] = [4, 5, 6];
The square brackets around split create an array reference out of what split returns.@array = map { [ split(';', $_) ] } (@num);
|
---|
In Section
Seekers of Perl Wisdom