in reply to Distinguishing a filehandle for an in-memory string
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).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Distinguishing a filehandle for an in-memory string
by jrw (Monk) on May 18, 2018 at 11:36 UTC | |
by ikegami (Patriarch) on May 19, 2018 at 01:10 UTC |
In Section
Seekers of Perl Wisdom