in reply to combining multiple files into one file

readdir only returns the file name not the complete path so you have to prepend the path when you want to open the file:
open IN, "/home/rjs/perl/perlnut/$_" or die "cant raman open /home/rjs +/perl/perlnut/$_ : $!\n ";