DEVFYI - Developer Resource - FYI

What does read() return at end of file?

Perl Questions and Answers


(Continued from previous question...)

What does read() return at end of file?

0
A defined (but false) 0 value is the proper indication of the end of file for read() and sysread().

(Continued on next question...)

Other Interview Questions