develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [PATCH] put useful info in %INC for files loaded by a hook in @INC

Thread Previous
From:
Rafael Garcia-Suarez
Date:
August 28, 2001 07:03
Subject:
Re: [PATCH] put useful info in %INC for files loaded by a hook in @INC
Message ID:
20010828160838.C19499@rafael

On 2001.08.28 14:50:14 +0200 Arthur Bergman wrote:
> > If I return *DATA instead of $fh, I think that the tests will work with
> > stdio. Problem : this will imply to use seek() on the DATA filehandle
> > and to delete the key 'Foo.pm' from %INC after each test.
> 
> Shouldn't that be safe in this testcase? It is a pretty high level testcase.

Yes, you're right. I'll see if I find a clean solution. For some reason, I
dislike the *DATA thing. Another option is to write a temporary Foo.pm
file, as t/comp/require.t does.

-- 
Rafael Garcia-Suarez

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About