Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2017-06-24 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (556 votes). Check out past polls.