Package: perl-base
Version: 5.8.4-8
Severity: normal

IO::Handle(3perl) writes:

  $io->write ( BUF, LEN [, OFFSET ] )
      This "write" is like "write" found in C, that is it is the opposite
      of read. The wrapper for the perl "write" function is called "for-
      mat_write".

I think 'like "write"' is far from the truth. The actual code is just
a simple PERL "print" statement instead of "syswrite". This means that
the return value is always 1 (in case of success) instead of the
number of actually written bytes as a programmer could expect.

A big warning required here in the man page:
"This is just a wrapper around print. A C like "write" is "syswrite".

Gabor


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to