Perl Programming Question: Download Perl Programming PDF
What does read() return at end of file?
Answer:
0
A defined (but false) 0 value is the proper indication of the end of file for read() and sysread().
A defined (but false) 0 value is the proper indication of the end of file for read() and sysread().
Previous Question | Next Question |
Why does Perl not have overloaded functions? | What does new $cur->{LINK} do? (Assume the current package has no new() function of its own.) |