in reply to Looking for a faster method
foreach (%channels) { $sock->send("JOIN $_\n") if ($channels{$_}); } [download]