...<$i> line 3
I guess output flushed/shown is for previous lines before successful substitution
In reply to Re^8: getting rid of UTF-8 by Anonymous Monk in thread getting rid of UTF-8 by BernieC