in reply to What does 'last OP;' do?

Indeed, each is a label, providing a target for the various "if"s which follow each.

Think you'll find help in
perldoc -f last