http://qs1969.pair.com?node_id=558148


in reply to Simple IF, IF, IF or ELSE

This is often called a "dispatch" or "case" or "switch" structure. You can find several suggestions for alternatives in the documents distributed with your perl:

perldoc -q switch

Update
You can also read the FAQ online.