Front page | perl.vmsperl |
Postings from June 2002
Re: TYPE/CONT in Perl
Thread Previous
From:
Craig A. Berry
Date:
June 10, 2002 10:33
Subject:
Re: TYPE/CONT in Perl
Message ID:
5.1.1.5.0.20020610111442.02e00f18@mail.mac.com
At 01:17 PM 6/10/2002 +0100, BAZLEY, Sebastian wrote:
>The file can be read OK in DCL with TYPE/CONT, and in Perl:
>
> open IN, "TYPE/CONT |";
>
>works OK, except that we haven't found how to terminate the sub-process
>without exitting the Perl script.
Closing IN doesn't do that?
>However, it would be nice if we could read the file directly from Perl, e.g.
>with the appropriate vmsopen() call from VMS::Stdio. We've tried "shr=put",
>but cannot seem to read beyond the initial end of the file.
Hmm. I think VMS::IndexedFile can do sequential reads, i.e., I don't know
if the file really has to be indexed. Its only advantage for your problem
is that it's using RMS calls rather than C library calls, which may or may
not be a way around what you are seeing. I don't really know why you are
seeing the behavior you get but it would be interesting to know if it's
reproducible with a simple C example.
Thread Previous