Perl: Send a chat message to your gmail buddy using Jabber

On December 23, 2010, in PERL, by Dipin Krishna

Net::Jabber provides a Perl user with access to the Jabber Instant Messaging protocol. Net::Jabber is a convenient tool to use for any perl script that would like to utilize the Jabber Instant Messaging protocol. While not a client in and of itself, it provides all of the necessary back-end functions to make a CGI client […]

Tagged with:  

Perl: Send a message to a queue or topic using Stomp

On December 21, 2010, in PERL, by Dipin Krishna

Net::Stomp module allows you to write a Stomp client. Stomp is the Streaming Text Orientated Messaging Protocol (or the Protocol Briefly Known as TTMP and Represented by the symbol :ttmp). It’s a simple and easy to implement protocol for working with Message Orientated Middleware from any language. Net::Stomp is useful for talking to Apache ActiveMQ, an open […]

Tagged with:  

Perl: Function to print a HASH completely

On December 15, 2010, in PERL, by Dipin Krishna

Below is a perl function that i wrote to print a HASH completely. What i mean by ‘completely’ is that it will expand all hashes and arrays found within the given HASH. sub print_hash { my ($hash,$str) = @_; while( my ($k, $v) = each %{$hash}) { print $str."$k => $v\n"; if( $v =~ /hash/i […]

Tagged with:  

Perl: Send bulk mail via SMTP with authentication

On December 15, 2010, in PERL, by Dipin Krishna

This is a tutorial on how to send mails to multiple recipients using Perl Net::SMTP module with authentication. 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 […]

Tagged with:  

Perl: Simple way to read Command line arguments

On December 14, 2010, in PERL, by Dipin Krishna

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.

Tagged with:  

Sending Emails Via Gmail SMTP With Perl

On December 8, 2010, in PERL, by Dipin Krishna

Update: Click here If you want to Send an Email with attachment through Gmail SMTP. 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 […]

Tagged with: