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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: print a backspace in nph-"HTML"?
by VSarkiss (Monsignor) on Dec 04, 2004 at 17:03 UTC | |
by Zed_Lopez (Chaplain) on Dec 04, 2004 at 19:42 UTC |
In Section
Seekers of Perl Wisdom