Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Copying a file to a temporary file

by shay (Beadle)
on Jun 15, 2004 at 13:03 UTC ( [id://366865]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $tmpfh = File::Temp::tempfile();
    File::Copy::copy($file, $tmpfh);
    
  2. or download this
    my($tmpfh, $tmpfile) = File::Temp::tempfile(UNLINK => 1);
    File::Copy::copy($file, $tmpfile);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://366865]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-28 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found