in reply to Re^2: elsif stupid question...
in thread elsif stupid question...

Personally I try to avoid using?: for its side effects, when not golfing - that is! Re the example you gave, a hash or an array would have provided a much neater solution.