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 .= $_; }
[download]
Note that chomp() removes the
current record separator
so it won't by default work with DOS textfiles under unix for example.
"What should it profit a man, if he should win a flame war, yet lose his cool?"
Comment on
Re: How to slurp files and join lines
Download
Code
In Section
Seekers of Perl Wisdom