Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: duping a filehandle

by smackdab (Pilgrim)
on Jan 14, 2007 at 05:02 UTC ( #594607=note: print w/replies, xml ) Need Help??


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!

Replies are listed 'Best First'.
Re^3: duping a filehandle
by ysth (Canon) on Jan 14, 2007 at 22:38 UTC
    Alternatively, pass just the filename to your sub and open it there using a different file handle (preferably lexical).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://594607]
help
Chatterbox?
Discipulus shall be damned all progs that do not provide different font size!
[Corion]: Yeah - that's one important thing why I like to run my presentations from my browser. Ctrl+ and Ctrl- are incredibly helpful there to make sure everybody can read stuff
[Discipulus]: I 'm always at 125%, and fontsize 12

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-09-26 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?