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

Re: Re: Re: Copying a file to more than one separate directory and/or file

by nardo (Friar)
on Jun 13, 2001 at 21:48 UTC ( #88139=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Copying a file to more than one separate directory and/or file
in thread Copying a file to more than one separate directory and/or file

This line:
foreach my $fd( keys %fd ) {
should be:
foreach my $fd( values %fd ) {
and instead of reading it in line by line, it would be more efficient just to read a chunk of it at a time so instead of
while( <IN> ) {
use
while( read(IN, $_, 4096) ) {

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2016-07-30 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (266 votes). Check out past polls.