"John W. Krahn" wrote: > > Gary Hawkins wrote: > > > > How can I clear a line before replacing it? > > > > Am doing \r and overwriting, but sometimes the text that was there previously > > is longer than the new text. > > Pad the shorter lines with spaces. For example: > > printf "\r%-20s", $something; or printf "\r"." " x (length ($old_string) - length ($new_string)); to be sure you pad the exact length. > > John > -- > use Perl; > program > fulfillment > > -- > To unsubscribe, e-mail: beginners-unsubscribe@perl.org > For additional commands, e-mail: beginners-help@perl.orgThread Previous