I wouldn't be weary of weight, unless you are running in a 1990s CGI environment (as opposed to mod_perl or FastCGI), for example.
This is due to two reasons. First of all, the efficiency difference will probably not be noticable unless benchmarked. The modules might even be more efficient than your regex stuff. Second, your time is worth more than the computer's time, as is the time of the maintenance programmer (you, or some other guy) that will come after you, in a few weeks/months time. This has value that can be later invested in beefier hardware. Unless the performance of the code is a problem (more over - a measurable problem), don't worry about it.
This is just an opinion though, grain of salt, 2 cents, and all.
| [reply] |
I'm not opposed to modules by any means. Though usually, for something small like this, I'd rather not introduce more dependencies.
If there was something on CPAN that did what I was looking for, I would have just used it.
As it stands, there's not. Which has provided some nice mental exercise. Which is good because I've been a tad stagnant. Outside of some software for my car, seems like I've been doing the same thing over and over forever.
| [reply] |
| [reply] [d/l] |
| [reply] |