use strict; use warnings; open OUT, '>', 'delme1.txt'; print OUT <}; close IN; $str =~ s/½/½/g; print $str;