Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to make a copy of filehandle

by hdb (Parson)
on Apr 09, 2013 at 08:20 UTC ( #1027673=note: print w/ replies, xml ) Need Help??


in reply to How to make a copy of filehandle

Have a look at seek. You cannot store the file handle as you desire but the position in the file using tell and later go back using seek.

UPDATE: A few seconds too late I was.


Comment on Re: How to make a copy of filehandle
Select or Download Code
Re^2: How to make a copy of filehandle
by loituma (Initiate) on Apr 09, 2013 at 08:29 UTC

    Thanks to you two! I think this will do it. Easy :)

    ps : yes I am aware $file isn't file name, I just didn't know how to write what I wanted.

Re^2: How to make a copy of filehandle
by LanX (Abbot) on Apr 09, 2013 at 08:32 UTC
    > UPDATE: A few seconds too late I was.

    so what? =)

    No reason to edit or strike your post!!!

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027673]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-04-17 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (441 votes), past polls