in reply to Re: Would you use a switch instead?
in thread Would you use a switch instead?
Thanks for encapsulating the code in question into a subroutine. I always felt that this makes for easier-to-read high-level code, and permits modifying how the underlying test is done with minimal high-level changes.