Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: easy file copy

by Parham (Friar)
on Mar 29, 2002 at 23:00 UTC ( [id://155350]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(IN, "< $input");
    open(OUT, "> $output");
    ...
    
    close(IN);
    close(OUT);
    
  2. or download this
    my $flock = 1
    
    ...
    close (FILE1);
    if ($flock == 1) { flock (FILE2, 8); } #this is in fact not needed, th
    +anx to crazyinsomniac for pointing out the insignificance ... read "f
    +ile locking" for more information
    close (FILE2);
    

Log In?
Username:
Password:

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

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

    No recent polls found