Perry during his service in the U.S. Navy