On Sun, Jun 21, 2009 at 11:58, EASY buzzhost.co.uk<hlug090...@buzzhost.co.uk> wrote: > On Sun, 2009-06-21 at 19:50 +0530, Gurunandan R. Bhat wrote: >> I am sure that someone will write a regex for you that will work. >> However, why not use Mail::Log::Parse::Postfix (this is a Postfix log >> right?) and getting the parameters you want is as easy as >> $logline->{to} .. well almost :) > Because it is overkill and will probably save me only a few lines of > code for what I am doing. snip
This statement shows me that you do understand what modules are for. They aren't there to save you lines of code. Modules are about giving to the community. Even if all you do is use the module you are giving back to the community. The more people who use a module, the more standard it becomes. Modules that are very standard make it easy to work on different code bases. Also, by using a module you may uncover an obscure bug. By reporting that bug, you start the process of fixing the problem, not only for yourself, but also for anyone else who uses the module. Everytime you decide to whip up your own version (without making it a module and putting it on CPAN), you are contributing to the [DarkPAN][1]. [1]: http://www.perlfoundation.org/perl5/index.cgi?darkpan -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/