Could someone who knows Perl much better than I give me a code snippet that uses the Net-XMPP package to connect to Google Talk, send a message, and then disconnect? So far I haven't even been able to connect, let alone send a message. I've used the code shown below, but when I execute it, after a bit of waiting, it returns an error message: "No SASL mechanism found". Also, I understand well what the hostname, username, and password are, but what on earth is the "resource" parameter?
#!/usr/local/bin/perl
use Net::XMPP;
$Con = new Net::XMPP::Client();
$Con->Execute(hostname=>"t
alk.google
.com",
username=>"username@gmail.
com",
password=>"password",
resource=>"i don't know what this means"
);
$Con->Disconnect();