Help for this page
for (@resultarray) { s/^0$/1/ }; ... push(@output5b, $outputb); for(@output5b){s/0/1/g}; #convert output from 0 to 1