![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: mysterious error of read function in solarisby JavaFan (Canon) |
on Jan 19, 2012 at 15:46 UTC ( #948794=note: print w/replies, xml ) | Need Help?? |
Whatever variable you put the return value of read in. From perldoc -f read
Returns the number of characters actually read, 0 at end of file, or undef if there was an error (in the latter case $! is also set).So, you'd do something like: I guess since 5.10, you could also write: but I don't think I would want to recommend that.
In Section
Seekers of Perl Wisdom
|
|