There are times to invent, or even re-invent wheels, but there are also times to learn how to fit an existing wheel to your wagon. There are a lot of existing wheels that fit this particular wagon and they are worth learning about almost as much as regexen.
A deciding criteria however may be that, while a ton of questions get asked here about how to apply regexen in various ways, many fewer questions arrise about using various DB techniques. If it is learning you want to do, browse the regexen questions here (and try to answer them without looking at the other answers in the first instance) to learn regexen. But open the DB can of worms to solve this particular problem. There are a number of data base modules that may be of interest, DBD::CSV obviously, but also DBD::SQLite and DBM::Deep are worth looking at for other ways to do it.
Both approaches involve learning stuff that will be bound to come in handy in the future, but regexen you should have plenty of opportunities to learn about. Finding excuses to learn DB techniques are a little rarer.
In reply to Re: To learn to search flat files or to cheat...
by GrandFather
in thread To learn to search flat files or to cheat...
by stonecolddevin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |