Refactored into subroutines
Refactored into subroutines

-	Per @jeremy-w's
	suggestion: https://alpha.app.net/jws/post/65412286
-	Should indeed allow for better readability and longevity

JeffMelton/perl-playtime