Posted on 2005-03-02 02:53:59-08 by itub in response to 44
Re: CPAN::Mini of the Future!

This sounds like it is contemplated in your plans already, but here's an example of something I wanted to do:

I subclassed CPAN::Mini and I wanted to do some processing on each new file as it was fetched. The way I ended up doing it was copying and pasting mirror_file() into my subclass, and then adding a line after if ( $status == RC_OK ) saying $self->post_mirror($local_file) and doing all the postprocessing in post_mirror(). It would have been more convenient if the base class already had that hook, with an empty post_mirror() by default.

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.