`command one *` `command two *` if (file =~ AAA) { `command four option1 file` &finish }elsif (file =~ BBB) { `command four option2 file` &finish } `command five` sub finish { `command six` }