in reply to Re^3: using bits to print part of a string.(bug)in thread using bits to print part of a string
BTW, I had to change the condition in substrref to
while $mask =~ /1+/g [download]