What you want to know is whether it's a system file handle or not. You can use fileno for that. It returns -1 for file handles that aren't system file handles (such as the in-memory string handles).
In reply to Re: Distinguishing a filehandle for an in-memory string
by ikegami
in thread Distinguishing a filehandle for an in-memory string
by jrw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |