vsailas has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,
I was parsing few files for their contents ..
and I stumbled upon few Concurrent Versions System (CVS) files.
Now I am in fix so as how to parse or get only the latest version from the whole CVS file.

Please guide me on how to go about it!

Thankfully,
Silas

Replies are listed 'Best First'.
Re: Parse CVS contents
by toolic (Bishop) on Jan 31, 2008 at 13:58 UTC
    I am not sure what you are trying to do. Perhaps you could be a little more specific by providing an example, such as a small sample of the file's contents. Are you trying to parse a file which is in the CVS repository itself (an RCS file with a ",v" suffix)?

    If you merely want to get the current version of a file, you can just use a command (on *nix) like:

    cvs checkout file
    But, you could just google cvs to find out more than you ever wanted to know.