File::Temp - not seekable

Toby Corkindale tjc at wintrmute.net
Wed May 24 16:10:49 BST 2006


On Tue, May 23, 2006 at 05:41:27PM +0100, Toby Corkindale wrote:
> On Mon, May 22, 2006 at 04:30:13PM -0600, Randy J. Ray wrote:
> > Toby Corkindale wrote:
> > > Is there any particularly good reason that File::Temp's OO constructor
> > > gives me a non-seekable IO::Handle, rather than an IO::File-alike?
> > 
> > Looking at the code, there doesn't seem to be a *good* reason, just the fact
> > that the base-class is set to IO::Handle instead of IO::File (or
> > IO::Seekable).
> 
> *nods*
> 
> > Have you tried contacting the module owner? It looks to me from examing the
> > code that changing the base-class should be all you need.
> 
> I've emailed him now; I'll let you know what the reason, if any, was, if he
> responds.

He said that it had never occured to him to use IO::Seekable, and he asked me
if it worked alright with it.

My testing says Yes, so maybe a future version will use it..

-Toby

-- 
Turning and turning in the widening gyre/The falcon cannot hear the falconer;
Things fall apart, the centre cannot hold/Mere anarchy is loosed upon the world
(gpg --keyserver www.co.uk.pgp.net --recv-key B1CCF88E)


More information about the london.pm mailing list