in reply to stat on in-memory filehandle warns inconsistently across perl versions

Maybe you can first verify that fileno returns -1 for the filehandle, than it must be the in-memory handle.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re: stat on in-memory filehandle warns inconsistently across perl versions
  • Download Code

Replies are listed 'Best First'.
Re^2: stat on in-memory filehandle warns inconsistently across perl versions
by pryrt (Prior) on Mar 07, 2019 at 18:21 UTC

    Thanks. I hadn't run across fileno as a way to distinguish the in-memory handles. Great idea.