Checking if socket is open with an array

Discussion in 'Perl' started by Joel Ross, Nov 8, 2009.

  1. Joel Ross

    Joel Ross Guest

    Hi all,

    I'm having some trouble with an array. I'm try to check if a service is
    running by getting the values from an array. I have uploaded the code to

    Code :


    It all works well if I have all the code in one file (provided here:, but when I provide the array in a
    separate file it seems to not work. It does gets the values from the
    array because their printed to the screen. I just don't understand why
    it doesn't use those values to make the connection.

    I need to have the array in a separate file to act like a properties file.

    I'm running Perl v5.10.0 and running it on FC11. Any help appreciated.


    Joel Ross, Nov 8, 2009
    1. Advertisements

  2. Joel Ross

    Dan Rumney Guest

    Can you run the program and provide us with the output that you're seeing?

    Dan Rumney, Nov 12, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.