foreach my $sess ( @{ $kernel->get_sessions_named('irc_bot') } ) { print $sess->get_heap()->{USERLIST}; }