|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: Ping log terminates unexpectedlyby AcidHawk (Vicar) |
| on Mar 23, 2006 at 09:07 UTC ( [id://538748]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I am not sure why the code terminates, however I do have a comment about your code. You open a handle to the log file each time you process a host from your @hostnames array. Perhaps you could look at opening the file handle once before processing the entire array. Also you may want to only sleep after the foreach... Something like
These changes will not affect you unless you @hostnames array grows to more than 1 host though.
----- Of all the things I've lost in my life, its my mind I miss the most.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||