#!/usr/bin/perl # http://perlmonks.org/?node_id=1190410 use strict; use warnings; my $input = <) { s/\G\t/ /g; print; }