SurrealChat.net Services Development (Perl)/ChanServ

dispatch() function parses input, selects specific action-function.

sub dispatch($$$) {

    my ($src, $dst, $msg) = @_;
    $msg = s/^s|//;
    my @args = ($src, $dst, split(/\s+/, $msg);
    if ($msg =~ (identifier)) { }
    return;
}


This page is read-only | View other revisions
Last edited January 6, 2005 1:40 pm (diff)
Search: