in reply to Text merge concept in perl
open OUT,'>merged.txt' or die $!; print OUT $_ foreach (<>); [download]
./a.pl /home/user/*.txt [download]