in reply to Typeover output
Try this,
$str = "hello"; print "$str"; $str = "hai"; print "\r$str"; [download]
Use Escape sequence carriage return
o/p: hailo
Regards,
Gubendran