go ahead... be a heretic | |
PerlMonks |
Re^3: Regex: Matching around a word(s)by nothingmuch (Priest) |
on Dec 17, 2005 at 19:54 UTC ( [id://517515]=note: print w/replies, xml ) | Need Help?? |
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.
-nuffin zz zZ Z Z #!perl
In Section
Seekers of Perl Wisdom
|
|