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


Tie-Cvs documentation  | view source Contained in the Tie-Cvs distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  use Tie::Cvs;

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

ABSTRACT

Top

  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

Top

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

Top

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

Top

perltie

AUTHOR

Top

Jose Joao Dias de Almeida, <jj@di.uminho.pt> Alberto Manuel B. Simões, <albie@alfarrabio.di.uminho.pt>

COPYRIGHT AND LICENSE

Top


Tie-Cvs documentation  | view source Contained in the Tie-Cvs distribution.