What does read() return at end of file in perl?-Perl interview

What does read() return at end of file in perl?
0
A defined (but false) 0 value is the proper indication of the end of file for read() and sysread().

No comments:

Post a Comment

comment on this post

Note: Only a member of this blog may post a comment.