in reply to Re^2: sequence of positions to binary sequence
in thread sequence of positions to binary sequence

but I dont know how to simply create the array of zeros

Simple enough, see the "x" operator at perlop

my @arr = (0) x 15

citromatik