Script with case off/ switch / given

Hi all, I’m using RT 5.0.2
I created a script with a series of nested “if… else…”, is there a way to transform it with switch or case off or given? I couldn’t find a working way …

if ($Value->Content eq 'Networking') {
       $actors[$count] = ('xxx@nuovocircondarioimolese.it');
       $count ++;
    } else {
        if ($Value->Content eq 'Manutenzione') {
           $actors[$count] = ('yyy@nuovocircondarioimolese.it');
           $count ++;
        } 
      } else .... 

In Perl you don’t need to nest the if inside the else clauses if you replace the else with elsif. So you can do:

if ($Value->Content eq 'Networking') {
       $actors[$count] = ('xxx@nuovocircondarioimolese.it');
       $count ++;
} elsif ($Value->Content eq 'Manutenzione') {
       $actors[$count] = ('yyy@nuovocircondarioimolese.it');
       $count ++;
} elsif .... 
}

Perfect! Thanks a lot!