in reply to Shorten/simplify repetitive code

Treating many variables similarly is a good sign that they belong as part of a larger data structure. Consider a hash containing arrayrefs for what you had formerly put in separate arrays.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Shorten/simplify repetitive code