http://qs1969.pair.com?node_id=1103604

BobMurray has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I am new to Perl, I have started studying a couple of books however I want to achieve something which is a out of my depth so I was wondering if someone could help me? I want to create a script in Perl, and run it initially on Windows. I want to be able to read IP addresses from a text file so I can change the IPs without editing the script, ping them once every few seconds and write failures only and Timestamps to another text file so I can easily see when drop outs occur. I have tried searching for this but have not been able to achieve it. I know this is asking a lot and I appreciate the help and the lesson.

Replies are listed 'Best First'.
Re: Help with script
by marto (Cardinal) on Oct 13, 2014 at 10:18 UTC

    Welcome!

    "I have tried searching for this but have not been able to achieve it."

    You haven't told us what part of the task you're having problems with. Searches for this specific problem are likely useless. Write down on paper all the steps you think are required to complete this task, try to implement each step in Perl code, tell us when you get stuck. PerlMonks for the Absolute Beginner/How do I post a question effectively?.

    Update: added tutorial link.

Re: Help with script ( ping list from file and log progress results to file )
by Anonymous Monk on Oct 13, 2014 at 10:23 UTC
Re: Help with script
by jonadab (Parson) on Oct 13, 2014 at 12:15 UTC

    Show us what you've tried before (use code tags), and tell us how it fails to meet your expectations (e.g., "I thought this function would ping $host and capture the results, but the results it returns are empty" -- or whatever the problem is that you're having).