perl : find if IP address is in Network range
Using NetAddr::IP one can find if a given IP address is in provided Network range or on the subnet.
Using NetAddr::IP one can find if a given IP address is in provided Network range or on the subnet.
Using grep and pattern matching, empty lines can be removed from an array in perl.
Getopt module provides a very good way to process command line flags and also performs the type checking of the values provided.
Using "rand" built-in random data or password can be generated in perl natively without using any external modules.
Use substr and rindex to extract the name of file from full pathname. Or use basename provided by File::Basename.
Using perl glob function filenames from a directory can be read easily. Simply use @files = to get filesnames that match the pattern in the given directory.
Using find and test commands you can search for the dangling or broken soft links on a Unix system.
$ENV{TZ} sets the environment in perl scripts.
"mktime" for unixtime and "localtime" for readable time.