in reply to Re: Re: Re: Slurp a file
in thread Slurp a file
That will be slower though.
The reason I suggested it is in case someone wanted to use your SuperSplit with tied filehandles. I would not depend on a tied filehandle correctly paying attention to $/, so the join makes sense.
But if you care about performance or have good reason to believe that people won't use tied filehandles, then avoid join.
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re3: Slurp a file
by tye (Sage) on Jan 08, 2001 at 22:55 UTC | |
by jeroenes (Priest) on Jan 08, 2001 at 23:04 UTC |
In Section
Cool Uses for Perl