Hello Craig,
>At 9:57 PM +0930 7/15/04, Jeremy Begg wrote:
>>
>>I think what I'm asking for is binmode-type processing on the data being
>>passed to the mailbox, but is this possible?
>
>Have a look at VMS::Stdio :
>
>$ perldoc VMS:Stdio
>
>specifically either calling vmsopen with "ctx=bin" as the optional
>VMS-specific argument. Or after it's open, call VMS::Stdio::binmode
>on the filehandle.
>
>You may also need to pay attention to the size of the mailbox by
>setting the PERL_MBX_SIZE logical name; if the mailbox buffer isn't
>big enough, the I/O could still be broken up in pieces yielding
>multiple records.
Thanks for the tip! Using binmode() didn't achieve anything but I did fix
my problem. After creating the subprocess via open() I now use getname() to
find the name of the mailbox it's using to talk to the subprocess, and then
I use vmsopen("ctx=bin") to open a second channel to the mailbox.
Regards,
Jeremy Begg