in reply to print to command line
while (<XMLFILE>) { # ... do stuff ... print "\cM"; print $ctr; } [download]