User Control Panel
Advertisements
HELP US, HELP YOU!
Author
Message
Cheater Senior Member Joined: 10 Jun 2005Posts: 236
Posted: Mon Jul 04, 2005 8:20 pm Post subject: Net::OSCAR Variables
For the callbacks, I know the pass back different information, but what variables store this information. I was on the Net::OSCAR thing on cpan.org. It didn't show the variables. Sorry if this is a simple question.
Back to top
Cer Upgraded Agent Joined: 03 Feb 2004Posts: 3776 Location: Michigan votes : 4
Posted: Mon Jul 04, 2005 8:55 pm Post subject:
Last time I checked, the callbacks on the documentation had lists of words they receive i.e.
im_in (OSCAR, FROM, MESSAGE, AWAY)
So you just have to put these into variables from @_ in your subroutine for this handler:
Code: sub im_in {
my ($oscar, $user, $message, $away) = @_;
And if you're ever in doubt you can always just put
Code: print join (", ", @_);
at the top of the subroutine to list everything in @_ to find out what's what. _________________ Current Site (2008) http://www.cuvou.com/
Back to top