Ron Wuerth wrote:
>
> Mark & Ted...you guys are my heroes! :-)
>
> I can confirm these results also.
>
> I was starting to wonder how I could manipulate the file descriptors
> directly
> in Perl, after seeing it done in C examples. Though I did read somewhere
> that as Ted said open() with ">&" or "<&" should call a dup2();
It's just a guess, but ">&" and "<&" might be having problems if Perl is using
fcntl() for some reason.
The MPE port of Perl currently isn't smart enough to switch between fcntl() and
sfcntl() if sockets are being used, and fcntl() will choke or behave wrongly on
sockets.
Using POSIX::dup2() solves the problem at a low level where fcntl() won't be
involved.
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *