Alberto Simões 🐪

NAME

Tie::Cvs - Perl extension to tie Hashes to CVS trees

SYNOPSIS

  use Tie::Cvs;

  tie %cvs, 'Tie::Cvs', "/root/mycvsroot";

ABSTRACT

  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.

DESCRIPTION

Use it normally, as any other tie.

Complete deletion of a key

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})) {}

METHODS

The defined methods are the standard for tie modules.

TIEHASH

Used to tie to the cvs, is used when you do

   tie %cvs, 'Tie::Cvs', "/root/mycvsroot";

STORE

Used to store a key, when you do

  $cvs{foo} = "bar";

FETCH

Used to retrieve the value for a key:

  $bar = $cvs{foo};

FIRSTKEY

Used when you use the keys on the hash, to retrieve the first key.

NEXTKEY

Used when you use the keys on the hash, to retrieve the next key.

EXISTS

Used when you call exists over a key

DELETE

Used to rollback a value;

norm

Used to built a normalised proper filename from a name.

norminv

Used to built obtain the name from the normalised filename.

CLEAR

Not yet used...

SEE ALSO

perltie

AUTHOR

Jose Joao Dias de Almeida, <jj@di.uminho.pt>

Alberto Manuel B. Sim�es, <albie@alfarrabio.di.uminho.pt>

COPYRIGHT AND LICENSE

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.