in reply to Re: should this backspace removal code be done better?
in thread should this backspace removal code be done better?
No, you are replacing backslash followed by 'b' as shown below.
local $_ = "this \\b is an\b\b\b correct\b\b\b\b\b\b\b\borrect usage"; print "$_\n\n"; s/(.\\b)//g; print $_;
/-\
|
|---|