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

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

Thread Previous | Thread Next
May 5, 2008 11:15
[PATCH-2] Re: testing $/ with in memory files
Message ID:
Quoting Ben Morrow <>:

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


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About