in reply to Re: Quicker way to do this IF statement 1-5
in thread Quicker way to do this IF statement 1-5

This one gets my vote as well. Creating a hash to do the job is expressive, readable and general. Also helps you avoid hardcoding in the (1..5) values, letting you put them at the top where constants generally belong. demerphq++

~dewey
  • Comment on Re^2: Quicker way to do this IF statement 1-5