Draft::Protozoa::Yml - CAD drawing-object base class
A CAD drawing object that consists of a single file with an internal YAML format.
Create an object by supplying the 'new' method with a file-path:
use Draft::Drawing::Yml; my $foo = Draft::Drawing::Yml->new ('/path/to/file.yml');
Read/Parse an existing file with the Read method:
$foo->Read;
Objects can be moved in the world-space:
$foo->Move ([10, 5, 0]);
This edits the file on the filesystem in one atomic operation. This is a permanent operation - If you find that you didn't want to move the object, you might want to investigate using cvs for your data.
Query the type and version of the object like so:
my $type = $self->Type ($foo); my $version = $self->Version ($foo);
To install Draft, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Draft
CPAN shell
perl -MCPAN -e shell install Draft
For more information on module installation, please visit the detailed CPAN module installation guide.