use strict; use warnings; use File::Slurp; my $s = read_file('large_file.txt'); $s =~s/\t/ /g ; write_file('test.txt', $s); __END__