----- Forwarded message from p5p@perl.wizbit.be ----- Date: Mon, 05 May 2008 20:14:19 +0200 From: Bram <p5p@perl.wizbit.be> Reply-To: Bram <p5p@perl.wizbit.be> Subject: [PATCH-2] Re: testing $/ with in memory files To: perl5-porters@perl.org Quoting Ben Morrow <ben@morrow.me.uk>: > Is $ENV{_} portable? I suppose not. > I would have thought something like > > if (eval q/use PerlIO::scalar; 1/) { > > would be safer, especially as it includes cases like non-PerlIO perls, > and statically-linked perls that don't have PerlIO::scalar linked in (if > such beasts exist). Patch attached. Kind regards, Bram ----- End forwarded message ----- Can someone apply the patch? The current test might be causing problems with -Uuseperlio (see http://www.nntp.perl.org/group/perl.daily-build.reports/2008/05/msg56012.html ) Kind regards, BramThread Next