Re: Need help converting af string of numbers to comma seperated list



On Mar 2, 1:20 pm, nikolajwint...@xxxxxxxxx wrote:
Here is an example, fist the original list and afterwards how it
should turn out.

1,3,5
2,6,8

,1,,1,,1
,,1,,,,1,,1

my @array;
@array[1,3,5] = (1)x3;
print join ',', @array;


--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)

.