But fileno fails to work on tied handles because there is no C-level filenumber associated with it. So unless you actually need to access the handle at the C level, I would recommend not causing gratuitous breakage with calls to fileno.
Comment on Re (tilly) 2 (no to fileno): How to verify a file handle?