[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Unix \r vs Mac \r



Under Unix I can use \r to 'rewind' the cursor
without going to a new line; but this display
a little square under MacPerl.

I use something like:

my $ctr = ""; # The counter...

# How wide, in chars, is the counter;
# so we can rewind back that far?
print "", "\b" x (4 + length(++$ctr)), "Try $ctr";

to get around this behavior.  My question is:

Is there a better MacPerl way?

Thx,
-Sneex-  :]

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org