I don't have experience with that personally, but I'd start with a good look at the
RCS module on CPAN. There are also the modules
RCS::Parser and
RCS::Agent that appear to possibly be helpful. Agent in particular.
Related PM Nodes found in a quick search:
RCS & mod_perl
Perl code, RCS/CVS, and distribution