good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Re: Copying a file to more than one separate directory and/or fileby nardo (Friar) |
on Jun 13, 2001 at 21:48 UTC ( [id://88139]=note: print w/replies, xml ) | Need Help?? |
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) ) {
In Section
Seekers of Perl Wisdom
|
|