Help for this page

Select Code to Download


  1. or download this
    my %dispatch_table = ( some_name_one => \&do_something, some_name_two 
    +=> \&do_something_else );
    
    ($dispatch_table{"$some_name"} || sub { print "no command found\n" })-
    +>($my_args,@into_sub);
    
  2. or download this
    # the code is loaded into $code from a DB in my case
    # and it loops around the sub below to load all plugins.
    ...
        print "[load_plugins] Plugin $name loaded successfully.\n";
    }