CAD::Drawing::IO::Compressed is a Perl module to load and save compressed data.
Requisite Plug-in Functions
See CAD::Drawing::IO for a description of the plug-in architecture.
check_type
Returns true if $type is "compressed" or $filename has a ".gz" extension (probably the best way.)
$fact = check_type($filename, $type);
Compressed I/O functions
These use File::Temp and compression modules to create a compressed version of most supported I/O types (FIXME: need a tar scheme for directory-based formats (currently unsupported))
save
$drw->save($filename, %opts);
load
$drw->load($filename, %opts);
Product's homepage
Requirements:
· Perl