in reply to Opening multiple files

Honestly, it smells like home work.

map {open IN,"$_";undef $/; $all_files_data .= <IN>;close IN;} @files; print "$all_files_data";

regards
Franklin

Don't put off till tomorrow, what you can do today.

Replies are listed 'Best First'.
Re^2: Opening multiple files
by Chon-Ji (Novice) on May 30, 2006 at 08:20 UTC
    Well,what I'm trying to do is to remove the for loop and just have all the file contents under a single handles....again if that's possible. I'll try Franklin's suggestion and see how it works