Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Copying a file to a temporary file

by Aragorn (Curate)
on Jun 15, 2004 at 13:26 UTC ( #366878=note: print w/ replies, xml ) Need Help??


in reply to Copying a file to a temporary file

According to the docs of File::Temp, if you use File::Temp::tempfile in scalar context, it only returns the filehandle. You can then use this filehandle as an argument to File::Copy::copy, which accepts both filenames and filehandles. Update: You'll have to find out if the warning in File::Copy's docs about using filehandles apply to your situation.

Arjen


Comment on Re: Copying a file to a temporary file
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-28 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls