Perl-Sensitive Sunglasses | |
PerlMonks |
Re: perldoc -f filenoby sgifford (Prior) |
on May 24, 2007 at 16:27 UTC ( [id://617261]=note: print w/replies, xml ) | Need Help?? |
Somewhat more generally, fileno returns the operating system's file descriptor number for the open file. Perl will sometimes let you pretend something is a file which really isn't, as in imp's example. In that case, Perl will give you a filehandle that isn't connected to a real file. If you create such a filehandle then ask for the operating system's descriptor, there isn't really an open file, so undef is returned.
In Section
Seekers of Perl Wisdom
|
|