in reply to How to slurp files and join lines

You're not using the arguments to multiComp(), either use @_ instead of @out, or skip the intermediate array (which is probably pretty inefficient, and do something like this:

my $out; while (<>) { chomp; $out .= $_; }
Note that chomp() removes the current record separator so it won't by default work with DOS textfiles under unix for example.