Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Pingger

by Trinary (Pilgrim)
on Apr 26, 2001 at 01:42 UTC ( [id://75630]=note: print w/replies, xml ) Need Help??


in reply to Pingger

When you construct the @iparray, you put a newline after each IP. Then when you use the @iparray to print out $host is alive, the newline is in the middle of whatever line it is you're printing.

Additionally, you have no newline at the end of the print " $host is alive "; line, thus garbling your output a bit.

Take the \n out of your map, and put one in your print to get one correctly formatted result on each line.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://75630]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-23 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found