Don't ask to ask, just ask | |
PerlMonks |
Re^3: selecting from a number of different input sources.by almut (Canon) |
on Jul 21, 2010 at 17:40 UTC ( [id://850692]=note: print w/replies, xml ) | Need Help?? |
It's not immediately clear from the docs, but just saying use IO::Handle entitles you to call IO::Handle methods on normal file handles like your already opened $fh. In other words, your snippet could be simplified as follows:
This doesn't answer the question how to make a socket out of a regular file, but I thought it's worth mentioning nevertheless...
In Section
Seekers of Perl Wisdom
|
|