Help for this page

Select Code to Download


  1. or download this
    my %actions = (
            option1 => \&process_option1,
    ...
    my $option = param('option');
    $action{$option}->() or default_action();
    exit;
    
  2. or download this
    my %file_hash = (
            a=>'notiagro.html',
    ...
            # and so on
        );
    my $catfile = $file_hash{$cat} || 'default value';