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 | Thread Next
From:
Arthur Bergman
Date:
August 28, 2001 05:50
Subject:
Re: [PATCH] put useful info in %INC for files loaded by a hook in@INC
Message ID:
B7B16026.35BE%arthur@contiller.se
01-08-28 14.44, skrev Rafael Garcia-Suarez på rgarciasuarez@free.fr
följande:

> Sorry, I've not been clear. The current tests (t/op/inccode.t) don't work
> with stdio, only with perlio, because of the idiom:
> open $fh, '<', \$scalar
> used to construct the filehandle to be returned from the subroutine put in
> @INC.
> 
> 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.

-- 
Arthur


Thread Previous | Thread Next


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