in reply to Re: Ping and check for server running on port 27015
in thread Ping and check for server running on port 27015
Then you can say something like:
That also means you will have to reverse the logic in your "or" modifier, but your program will more intuitive and easier to maintain.if ( $connected) { print " Port $port is up.\n"; } else { print " Port $port is down.\n"; }
|
|---|