in reply to Re^2: Track open file handles
in thread Track open file handles
How about $_[0] = eval "*".caller."::G".(0+\$_[0]) unless ref $_[0] eq "GLOB" or ref \$_[0] eq "GLOB"; before the call to $open? This prevents the call to the standard open to autovivify a GLOB when none is available.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Track open file handles
by shmem (Chancellor) on Apr 06, 2017 at 21:06 UTC | |
by salva (Canon) on Apr 07, 2017 at 08:57 UTC | |
by shmem (Chancellor) on Apr 07, 2017 at 09:36 UTC |