develooper Front page | perl.perl5.porters | Postings from August 2013

Re: test.pl runperl() exit oddity

Thread Previous | Thread Next
From:
Eric Brine
Date:
August 7, 2013 18:54
Subject:
Re: test.pl runperl() exit oddity
Message ID:
CALJW-qFMGj958tJS7MW6Nxr9yQq0RepKF1GZGYtBOg8xd1gFBQ@mail.gmail.com
On Wed, Aug 7, 2013 at 1:40 PM, Nicholas Clark <nick@ccl4.org> wrote:

> Does
>
>     perl <nul.txt -e1
>
> work too?
>
> (ie it's still compatible with MS/DOS and earlier)
>

Yes.

My assumption was based on what seem to be several regression tests
> that opened /dev/null and aren't failing on Win32.
>

There isn't that much difference between a file handle to an empty file and
an opened file handle. <$fh> returns false for both.

Thread Previous | 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