This is an archived low-energy page for bots and other anonmyous visitors.
Please sign up if you are a human and want to interact.
in reply to Re: duping a filehandle in thread duping a filehandle
THANKS!!! I wish I knew unix better...I found a "seek($fh_log, 0, 0);" before returning from my subroutine put the filepointer back at the top, so all is good!
Re^3: duping a filehandle
by ysth (Canon) on Jan 14, 2007 at 17:38 UTC
|
Alternatively, pass just the filename to your sub and open it there using a different file handle (preferably lexical).
| [reply] |
|