From: Jakub Narebski Date: Wed, 11 Oct 2006 18:46:14 GMT Subject: Re: [PATCH] gitweb: Show project README if available Message-ID: In-Reply-To: <20061011181729.GB2897@coredump.intra.peff.net> Jeff King wrote: > On Wed, Oct 11, 2006 at 02:23:00PM +0200, Jakub Narebski wrote: > >> Can any Perl expert tell us how Perl truly solve this? What is the best >> way to dump whole [remaining] contents of file (from filehandle) to STDOUT? > > The same you would in C: read fix-sized buffers and dump them. [...] > Or you can use the File::Copy module, which is part of the standard > distribution (and I believe has been so for all perl5 versions, but I > could be wrong): And { local $/; print <$fd>; } doesn't do the right thing? -- Jakub Narebski Warsaw, Poland ShadeHawk on #git