Who made Windows Perl easy?

So I had a gig on Monday installing a TT/Plucene/Perl site on a laptop so our client could get at their data and search it even when they were out on house calls. On their Windows laptop.

Great, I thought, I can bill by the hour, and this job will be a nightmare.

It took two hours. I had settled in for the day, but there you go. I'm a couple of hundred quid out of pocket, thanks to CamelPack. The hardest part was connecting the laptop to the network.

I'm waiting on a couple of other jobs which may or may not come in next week, so today continued hacking on Email::Received. Now I have a parser and an unparser, which turns the little language back into Perl code. Then we have a very neat trick which essentially goes:

    use base 'Exporter';
    our @EXPORT = qw(parse_received);
    *parse_received = eval unparse_rules( parse_rules(  ));

So the code is partially static (because it's compiled once) and partially dynamic, because you're not compiling it and dumping it into another file, or whatever. But the best thing about this is that you can instrument the code you generate so it tells you which rules were matched for which input. I gave a brief talk about this at London.pm tonight.

Also, after popular demand at the London.pm meeting, SpamMonkey escaped to CPAN.


Full version - 0 Comments