The module IO::Handle provides methods ioctl and fcntl.
These methods are not mentioned in the POD, so I suppose I
shouldn't be complaining about them. However, since one expects
them to exist, they are easy to call by accident. Moreover, if
they worked, they would be useful.
So, here goes.
There are two problems.
1. Each method copies its third argument before calling the
corresponding built-in. This is wrong, because both built-ins
may return results via the third argument. I claim that this
is a plain bug which should be fixed.
2. Each method returns 0 if the corresponding built-in returns
"0 but true". This is a highly surprising difference of spec
from the expected "just front ends for the corresponding
built-in functions". If it isn't a bug it requires careful
Site configuration information for perl 5.00503:
Configured by cj10 at Tue Jun 8 12:07:36 BST 1999.
@INC for perl 5.00503:
Environment for perl 5.00503:
Charles Jardine - Computing Service, University of Cambridge
email@example.com Tel: +44 1223 334506, Fax: +44 1223 334679