Test::TCP::CheckPort - check if a port is open from command line
$^X -MTest::TCP::CheckPort -echeck_port 8080
This is a wrapper for Net::EmptyPort which checks if a given port is open, from the command line argument (@ARGV). Because it works with port numbers in the argument list, you don't need to quote it when running with the perl executable.
@ARGV
Test::TCP Net::EmptyPort
To install Test::TCP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::TCP
CPAN shell
perl -MCPAN -e shell install Test::TCP
For more information on module installation, please visit the detailed CPAN module installation guide.