-
These two passages of code occurred within the top and bottom parts of same subroutine.
-
The sub was working; I was prepared to live with the repetitious code.
-
But then I had to create a new subroutine which significantly altered other parts of the first subroutine but kept these parts the same.
-
I faced the prospect of having four very similar blocks of code, rather than just two.
-
I didn't want to be stymied by the difference between:
$week{$_}{'scheduled'}
and
$week{'scheduled'}
Slide:
6
challenge
|
© 2003 James E. Keenan |