"be consistent" | |
PerlMonks |
Re: Distinguishing a filehandle for an in-memory stringby ikegami (Patriarch) |
on May 18, 2018 at 03:34 UTC ( [id://1214811]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|