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

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

Thread Previous
From:
Rafael Garcia-Suarez
Date:
June 8, 2008 06:52
Subject:
Re: [PATCH-2] Re: testing $/ with in memory files
Message ID:
b77c1dce0806080652n7ea70a5fpb3320918c36b215d@mail.gmail.com
2008/5/26 Bram <p5p@perl.wizbit.be>:
> 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.

Thanks, applied.

Thread Previous


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