develooper Front page | perl.perl5.porters | Postings from May 2008

Fwd: [PATCH-2] Re: testing $/ with in memory files

Thread Next
From:
Bram
Date:
May 26, 2008 00:14
Subject:
Fwd: [PATCH-2] Re: testing $/ with in memory files
Message ID:
20080526091258.vbcecy2dc00gwg08@horde.wizbit.be


----- 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,

Bram



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