- or download this
for (split //, $template) {
print ord == 0 ? '.' : 'X';
}
print "\n";
- or download this
$template =~ tr/\0/X/c;
$template =~ tr/\0/./;
print "$template\n";
- or download this
print "position $-[0] is not conserved\n" while $template =~ /[^\0]/g;