in reply to CVS Version of a File
While I don't know the exact answer to your question, I do know that reinventing wheels is generally not a good idea. Try searching CPAN for existing CVS modules. :-)
HTH,