in reply to Re^2: Case Statement
in thread Case Statement

I'd be more inclined to use a hash whose keys are the appropriate case values, some of which would be regexes to deal with Code/UserCode.