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

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

Thread Previous | Thread Next
From:
Bram
Date:
May 5, 2008 11:15
Subject:
[PATCH-2] Re: testing $/ with in memory files
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



Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About