Parsing command-line arguments in Perl is very easy. All the command-line arguments are present in the array $ARGV. You can get the number of arguments passed as ( $#ARGV + 1 ). Below is a sample Perl script to read the command-line parameters.
This is a tutorial on how to send mails using Perl Net::SMTP module through Gmail SMTP. The smtp module implements a client interface to the SMTP and ESMTP protocol, enabling a perl5 application to talk to SMTP servers. The first step is to create a SMTP connection to the server. A new Net::SMTP object must [...]





