Tie::Cvs - Perl extension to tie Hashes to CVS trees
use Tie::Cvs; tie %cvs, 'Tie::Cvs', "/root/mycvsroot";
Tie::Cvs is a module to tie Perl hashes with a CVS Tree. It uses CVS versioning system such that the hash will have value versions.
Use it normally, as any other tie.
Each time you call delete on a key, the current version will be deleted, and the value will roll back to the previous version in CVS. If there is no previous version, the file will be deleted.
If you want to delete completly a key (delete the file) use something like:
while(delete($cvs{$key})) {}
The defined methods are the standard for tie modules.
Used to tie to the cvs, is used when you do
tie %cvs, 'Tie::Cvs', "/root/mycvsroot";
Used to store a key, when you do
$cvs{foo} = "bar";
Used to retrieve the value for a key:
$bar = $cvs{foo};
Used when you use the keys on the hash, to retrieve the first key.
keys
Used when you use the keys on the hash, to retrieve the next key.
Used when you call exists over a key
exists
Used to rollback a value;
Used to built a normalised proper filename from a name.
Used to built obtain the name from the normalised filename.
Not yet used...
perltie
Jose Joao Dias de Almeida, <jj@di.uminho.pt>
Alberto Manuel B. Sim�es, <albie@alfarrabio.di.uminho.pt>
Copyright 2003-2015 by Projecto Natura
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Tie::Cvs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::Cvs
CPAN shell
perl -MCPAN -e shell install Tie::Cvs
For more information on module installation, please visit the detailed CPAN module installation guide.