for (@input) { s/\\n/\n/g; # replace \n with newline s/\\t/\t/g; # replace \t with tab }