I am using the POE:COMPONENT:IRC:STATE library for a bot i am writing. I am trying to use the channel_list function:
sub channel_list {
my ($self, $chan) = @_;
if (!defined $chan) {
warn 'Channel is undefined';
return;
}
my $map = $self->isupport('CASEMAPPING');
my $uchan = uc_irc($chan, $map);
return if !$self->_channel_exists($chan);
return map { $self->{STATE}{Nicks}{$_}{Nick} } keys %{ $self->{STATE}{Chans}{ $uchan }{Nicks} };
}
I call it
$irc_Channel_list(channel);
My question is how do i get the return, i don't know the size of the list. It seems to be handeling that somehow, but i am so new i am not 100% sure on what the return is doing.

New Topic/Question
Reply


MultiQuote





|