RSS | Module Info | Add a review of Filter-Macro

1 out of 13 found this review helpful:

Filter-Macro (0.11) *

I only gave Filter::Macro a 1-star rating to visibly lower the rating that it's listed with in the search results, so that users get a chance to see there's an alternative module instead.

The Perl Foundation recommends against using Filter::Macro at http://www.perlfoundation.org/perl5/index.cgi?pbp_module_recommendation_commentary

Dan Dascalescu - 2009-04-08 06:25:51
Was this review helpful to you?  Yes No

4 out of 4 found this review helpful:

Filter-Macro (0.11) *****

I took a look at the source code for this module, and it's not really the type of thing most of us would want to have to troubleshoot ourselves. (Think 10 lines of Audrey Tang code).

That being said, it works as advertised.

I have a directory full of about 40 test files and wanted to eliminate a bunch of the code at the top of each one. Think:

use strict;
use warnings;
use Test::More;
use Test::Exception;
use Perl6::Say;
use JSON;
etc...

I also have a piece which does a bit of filename munching to automatically figure out which module the test should be testing. I stuck this in the macro too.

Since the files I tried this on were test files, it was trivial to see if the Filter::Macro module worked correctly, which it did. Not every test file needed every one of the modules included by the macro, but since they're tests they don't affect the performance of the real application, so this seemed like a good use of the Filter::Macro module.

Yes, Filter::Macro is a source filter, but it uses Filter::Simple::Compile, which does apparently awesome things which are, unfortunately, beyond my comprehension.

--Gordon McCreight

Gordon McCreight - 2006-06-16 17:03:26
Was this review helpful to you?  Yes No


the camel