in reply to Telling require "I've handled it"

MANIFEST says
4635 t/op/inccode.t See if coderefs work in @INC
t/op/inccode.t See if coderefs work in @INC

Replies are listed 'Best First'.
Re^2: Telling require "I've handled it"
by dsheroh (Monsignor) on Oct 29, 2010 at 19:39 UTC
    Ah, good find! I'll definitely take a look at the tests to see what enlightenment they might convey.
Re^2: Telling require "I've handled it"
by dsheroh (Monsignor) on Nov 01, 2010 at 11:46 UTC
    Going through inccode.t, I was able to get it working by returning an in-memory filehandle pointed to the string "1":
    use PerlIO::Scalar; # to avoid recursion when creating $fh sub require_local { # do the actual work, per the source I posted earlier # ... open my $fh, '<', \'1'; return $fh; }
    Thanks for finding those tests and pointing me at them!