my $text = "No \x08\x08\x08 good"; $text =~ s/.\x08//g; print $text;