|Think about Loose Coupling|
parsing CSV with TEXT::CSVby GertMT (Friar)
|on Jul 21, 2009 at 20:21 UTC||Need Help??|
GertMT has asked for the
wisdom of the Perl Monks concerning the following question:
Trying to make a little csv-parsing script more efficient. Everything works fine. I realize my current set-up is going to look really ugly if I add more "selection-rules" for a change in value of column 2. I chose current setup as I'm using regexes for the real data but I'm losing track of all the curly braces at the end of my script.
Is there a different way of setting the selections up? Via subs? Eg. if I'd like to add "boat" after "Sailing".