http://www.perlmonks.org?node_id=412420


in reply to Re: print a backspace in nph-"HTML"?
in thread print a backspace in nph-"HTML"?

But that doesn't make count 0 if count was 4 as the OP's code had it.

print "\b\b\b\b" unless $count %= 4

is closer but also executes the print statement for $count = 0, 8, 12, etc., and assigns 0 to $count for 8, 12, etc.

This works:

$count = 0, print "\b\b\b\b" if $count == 4;

but I'd use a block here.