If(...=~...){ do something } elsif(....=~)( do some other thing } ... else {...}