Docs::Site_SVD::Data_Secs2 - pack, unpack, format between Perl data and SEMI E5-94 nested data
Software Version Description for Docs::Site_SVD::Data_Secs2 - pack, unpack, format between Perl data and SEMI E5-94 nested data Revision: G Version: 0.09 Date: 2004/05/20 Prepared for: General Public Prepared by: SoftwareDiamonds.com E<lt>support@SoftwareDiamonds.comE<gt> Copyright: copyright 2003 2004 Software Diamonds Classification: NONE
This paragraph identifies and provides an overview of the released files.
This release, identified in 3.2, is a collection of Perl modules that extend the capabilities of the Perl language.
The 'Data::Strify' module provides a canoncial string for data no matter how many nests of arrays and hashes it contains.
This document releases Data::Secs2 version 0.09 providing a description of the inventory, installation instructions and other information necessary to utilize and track this release.
All file specifications in this SVD use the Unix operating system file specification.
This document releases the file
Data-Secs2-0.09.tar.gz
found at the following repository(s):
http://www.softwarediamonds/packages/ http://www.perl.com/CPAN/authors/id/S/SO/SOFTDIA/
Restrictions regarding duplication and license provisions are as follows:
copyright 2003 2004 Software Diamonds
603 882-0846 E<lt> support@SoftwareDiamonds.com E<gt>
Software Diamonds permits the redistribution and use in source and binary forms, with or without modification, provided that the following conditions are met:
Redistributions of source code, modified or unmodified must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Commercial installation of the binary or source must visually present to the installer the above copyright notice, this list of conditions intact, that the original source is available at http://softwarediamonds.com and provide means for the installer to actively accept the list of conditions; otherwise, a license fee must be paid to Softwareware Diamonds.
SOFTWARE DIAMONDS, http://www.SoftwareDiamonds.com, PROVIDES THIS SOFTWARE 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTWARE DIAMONDS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING USE OF THIS SOFTWARE, EVEN IF ADVISED OF NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE POSSIBILITY OF SUCH DAMAGE.
The content of the released, compressed, archieve file, consists of the following files:
file version date comment ------------------------------------------------------------ ------- ---------- ------------------------ lib/Docs/Site_SVD/Data_Secs2.pm 0.09 2004/05/20 revised 0.08 MANIFEST 0.09 2004/05/20 generated, replaces 0.08 Makefile.PL 0.09 2004/05/20 generated, replaces 0.08 README 0.09 2004/05/20 generated, replaces 0.08 lib/Data/Secs2.pm 1.25 2004/05/20 revised 1.23 t/Data/Secs2.d 0.06 2004/05/11 unchanged t/Data/Secs2.pm 0.06 2004/05/11 unchanged t/Data/Secs2.t 0.07 2004/05/11 unchanged t/Data/File/Package.pm 1.17 2004/05/20 unchanged t/Data/File/SmartNL.pm 1.16 2004/05/20 revised 1.15 t/Data/Text/Scrub.pm 1.14 2004/05/20 revised 1.13 t/Data/Test/Tech.pm 1.26 2004/05/20 revised 1.25 t/Data/Data/SecsPack.pm 0.08 2004/05/20 revised 0.07 t/Data/Data/Str2Num.pm 0.06 2004/05/20 new t/Data/Data/Startup.pm 0.07 2004/05/20 revised 0.06
Changes to past revisions are as follows:
Originated
Abandoned Data::Dumper in favor of SEMI E35, SECS-II standard for stringifying Perl data.
Added arrayification of REF and GLOB references. Thus, the 'Data::Secs2' module will nest into REF and GLOB references.
The lastest build of Test::STDmaker expects the test library in the same directory as the test script. Coordiated with the lastest Test::STDmaker by moving the test library from tlib to t/Data, the same directory as the test script and deleting the test library File::TestPath program module.
Greater expanded the subroutines to the following: arrayify, itemify, listify, neuterify, scalarize, secsify, stringify, transify, vectorize. Added descriptions and tests for the new functions.
Change Perlify to allow translation packed multi-cell number item elements as number arrays. Single cell number item elements are still translated as a number scalar. This situation exists because SEMI E5 treats a single text character and a single number as a cell, while Perl treats multiple characters and a single number as a scalar. Granted there is the Perl function vec that allows some manipulation of multicell data. But it is stretch to say that because of the vec function that multicell integers are an underlying Perl data type.
vec
Added new and config subroutine to supply the default, (startup) options for each subroutine in the Data::Secs2 program module. The default options may be overriden with a subroutine input for most subroutines.
new
config
Data::Secs2
The Perl undef was not finding a home in the SECS2 Object. Found a home as a SEMI E5-94 empty list L[0].
Added support for the CODE underlying Perl data type.
CODE
Changed the definition of a SECS Object, eliminating the option of have numbers packed or unpacked to unpack only. Replaced the slot for packed with a new encoding of a 'Numeric Scalar'. Perl does not support 'Test Scalars' while the SEMI E5-94 standard does not support neither scalars. Other languages, such as APL, support nested array, 'Text Scalars' and 'Numeric Scalars'.
SECS Object
BEFORE: (Data-Secs2-0.05)
U1 [1 2 3] # unpacked U1 $*% # packed
AFTER: (Data-Secs2-0.06)
U1 [1 2 3] # numeric array U1 1 # numeric scalar A 'hello' # text array A 'h' # text scalar
Note that altough text scalars are possible and exist in other languages, the Data::Secs2 program module does not provide support for them. In Perl what other languages consider text arrays are text scalars. Since underlying Perl language does not support them, they are not part of common Perl practices, and turning Perl text arrays into text scalars and introducing text arrays require extensive gyrations to Perl.
Added a new format type to SECS Object with unspecified bytes per cell, format 'N', where the 'N' stands for number. Eliminated the textify and numerify subroutines that packed and unpacked SECS Object numeric data. It is always unpacked for Data-Secs2. Eliminated the perl_secs_numbers for the listify subroutine. Since have a crystal clear encoding of scalar numberics and scalar arrays (lists), Perl numeric arrays will always be encoded as 'multicell' when going form Perl nested lists to SECS Object.
textify
numerify
Data-Secs2
perl_secs_numbers
listify
Changed the output of the perlify subroutine from a list of variables to a reference to a list of variables and introduced a scalar as an error message. This allows another way to output error messages beside optional warns and dies.
perlify
warns
dies
The secs_elementify subroutine did not handle a numeric zero properly. Added test for numeric zero and undef.
secs_elementify
Documentation woes. The SEMI link does not work on. Changed to SEMI, http://www.semi.org. The new SVD =head1 NAME is masking out the code program module. Changed the SVD =head1 NAME so not same as code program module =head1 NAME
Change use Data::SecsPack to require Data::SecsPack so that it is not loaded unless using Data::Secs2 to pack and unpack SEMI E5 numbers.
use Data::SecsPack
require Data::SecsPack
Move str2float and str2int from Data::SecsPack to Data::Str2Num so that the Data::Secs2 package and other packages may load them without loading the subroutines to pack and unpack numbers in the Data::SecsPack subroutine.
str2float
str2int
Data::SecsPack
Data::Str2Num
This installation requires that the installation site has the Perl programming language installed. There are no other additional requirements or tailoring needed of configurations files, adaptation data or other software needed for this installation particular to any installation site.
There are no related documents needed for the installation and test of this release.
Instructions for installation, installation tests and installation support are as follows:
To installed the release file, use the CPAN module pr PPM module in the Perl release or the INSTALL.PL script at the following web site:
http://packages.SoftwareDiamonds.com
Follow the instructions for the the chosen installation software.
If all else fails, the file may be manually installed. Enter one of the following repositories in a web browser:
Right click on 'Data-Secs2-0.09.tar.gz' and download to a temporary installation directory. Enter the following where $make is 'nmake' for microsoft windows; otherwise 'make'.
gunzip Data-Secs2-0.09.tar.gz tar -xf Data-Secs2-0.09.tar perl Makefile.PL $make test $make install
On Microsoft operating system, nmake, tar, and gunzip must be in the exeuction path. If tar and gunzip are not install, download and install unxutils from
http://packages.softwarediamonds.com
'Data::SecsPack' => '0.06', 'Data::Str2Num' => '0.05', 'Data::Startup' => '0.02'
None.
Most Perl installation software will run the following test script(s) as part of the installation:
t/Data/Secs2.t
If there are installation problems or questions with the installation contact
The following are useful acronyms:
extension for a Perl demo script file
extension for a Perl Library Module
extension for a Perl test script file
Plain Old Documentation
To install Data::Secs2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Secs2
CPAN shell
perl -MCPAN -e shell install Data::Secs2
For more information on module installation, please visit the detailed CPAN module installation guide.