Re: test.pl runperl() exit oddity

Eric Brine <[email protected]> Wed, 7 Aug 2013 14:54:03 -0400
Newsgroups gmane.comp.lang.perl.ports.vms,gmane.comp.lang.perl.perl5.porters
Message-ID <CALJW-qFMGj958tJS7MW6Nxr9yQq0RepKF1GZGYtBOg8xd1gFBQ@mail.gmail.com>
--089e0158adfeb7d0a104e3601023
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Aug 7, 2013 at 1:40 PM, Nicholas Clark <[email protected]> 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.

--089e0158adfeb7d0a104e3601023
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><div class=3D"gmail_quote">=
On Wed, Aug 7, 2013 at 1:40 PM, Nicholas Clark <span dir=3D"ltr">&lt;<a hre=
f=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> w=
rote:<br>
<blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex" class=3D"gmail_quote">Does<br>
<br>
=A0 =A0 perl &lt;nul.txt -e1<br>
<br>
work too?<br>
<br>
(ie it&#39;s still compatible with MS/DOS and earlier)<br></blockquote><br>=
</div><div class=3D"gmail_quote">Yes.<br><br></div><div class=3D"gmail_quot=
e"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord=
er-left:1px solid rgb(204,204,204);padding-left:1ex">
My assumption was based on what seem to be several regression tests<br>
that opened /dev/null and aren&#39;t failing on Win32.<br></blockquote><div=
><br></div><div>There isn&#39;t that much difference between a file handle =
to an empty file and an opened file handle. &lt;$fh&gt; returns false for b=
oth.<br>
</div></div><br></div></div>

--089e0158adfeb7d0a104e3601023--