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. -- ArthurThread Previous | Thread Next