On Mon, 12 Mar 2001, Brad Hughes wrote:
> Are you suggesting VMS::FDL limit you to just one of these ways or allow
> any of these ways? I'd say allow three:
>
> 1) $fdlstring = "FILE; ORG SEQ; FORMAT STREAM_LF;"
>
> 2) $hashref = { 'FILE' => {'ORGANIZATION' => 'sequential'},
> 'RECORD' => {'FORMAT' => 'stream_lf'},
> };
>
> 3) open F, "file.fdl";
> $globref = \*F;
>
> and let VMS::FDL do the right thing based on a c<ref> of the
> appropriate parameter.
Yes, that flexible manner in which one could specify it several different
ways was what I had in mind (in the absence of a VMS::Descriptor package
for vmsperl ;-)
> > BTW, this thread started when Nico wanted to contribute a "ctx=bin" to the
> > freopen() in VMS::Stdio::binmode();. I don't use VMS::Stdio::binmode().
> > Could someone who does test out Nico's proposed patch? Does it
> > adversely effect anyone? Thanks.
>
> Actually, I thought C<binmode()> was a NOOP on VMS.
I think that perl's CORE::binmode() is but VMS::Stdio::binmode() really
does do a freopen() on the filehandle. Nico would like to add "ctx=bin"
to avoid CR insertion for mailbox talking to STDIN.
Peter Prymmer