VCS::LibCVS::Datum - a piece of CVS data
$mode = VCS::LibCVS::Datum::Mode->new("u=rw,g=rw,o=r"); $rq = VCS::LibCVS::Client::Request::Modified->new(["file",$mode,$file]);
Datum represents a single piece of CVS data, such as an entries line, a file mode or a tag spec. It has subclasses for each type of CVS data. Datum should not to be instantiated, instead its subclasses should be instantiated.
To access the contained data see the accessors for each subclass.
$data = Datum::Subclass->new($data)
Only call this on subclasses of Datum. Some subclasses override this constructor.
An IO::Handle object from which the Datum will be read. Most Datum are line oriented, so they will read one or more lines from the IO::handle.
If the Datum consists of a single line, it can be passed as a scalar.
If the Datum consists of one or more lines, they can be passed as an array ref.
If the argument is an object of the type which is being constructed, the argument itself will be returned. It will not be copied.
This is used by the Client::Request constructor which blindly passes its args to the Datum constructor. That way the user has the freedom to construct their own Datum and pass it to the Client::Request constructor.
Construct a new Datum. The IO::Handle option is used for reading a Datum from the server, the others when constructing it locally.
$datum_string = $datum->as_string()
Returns the Datum as a string.
$datum->protocol_print($file_handle)
Prints the Datum to the IO::Handle. The output will be formatted for sending to the cvs server, including the placement of newlines.
$datum_string = $datum->as_protocol_string()
Returns the Datum as a string suitable for being sent to the server, including the placement of newlines.
if ($datum1->equals($datum2)) {
Returns true if the data contain the same information (and are of the same type)
VCS::LibCVS::Datum::DirectoryName VCS::LibCVS::Datum::Entry VCS::LibCVS::Datum::FileContents VCS::LibCVS::Datum::FileMode VCS::LibCVS::Datum::FileName VCS::LibCVS::Datum::PathName VCS::LibCVS::Datum::Root VCS::LibCVS::Datum::String VCS::LibCVS::Datum::TagSpec VCS::LibCVS::Datum::Time
To install VCS::LibCVS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VCS::LibCVS
CPAN shell
perl -MCPAN -e shell install VCS::LibCVS
For more information on module installation, please visit the detailed CPAN module installation guide.