X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=perl-module%2Flib%2FPSPP.pm;h=e5599908b683f7b6e6bde716fbfa9f74d3460338;hb=231ebe7e6d5c8c8eba47560793b5fa53c013b87f;hp=93d70ef20875541427b13dd5038c6331ccaec414;hpb=92ddb7c2327432a5b7ca27557eb5727e46a7c9bd;p=pspp-builds.git diff --git a/perl-module/lib/PSPP.pm b/perl-module/lib/PSPP.pm index 93d70ef2..e5599908 100644 --- a/perl-module/lib/PSPP.pm +++ b/perl-module/lib/PSPP.pm @@ -21,7 +21,7 @@ None by default. =cut BEGIN { - $PSPP::VERSION='0.7.1'; + $PSPP::VERSION='0.7.2'; require XSLoader; XSLoader::load('PSPP', $PSPP::VERSION); } @@ -87,6 +87,10 @@ sub new =pod +=head3 get_var_cnt () + +Returns the number of variables in the dictionary. + =head3 get_var ($idx) Returns the Cth variable from the dictionary. @@ -245,7 +249,7 @@ An integer denoting the number of decimal places for the format. =item width -An integer denoting the number of width of the format. +An integer denoting the width of the format. =back @@ -278,6 +282,16 @@ sub set_print_format =pod + +=head3 get_write_format () + +Returns a reference to a hash containing the write format for the variable. + + +=head3 get_print_format () + +Returns a reference to a hash containing the print format for the variable. + =head3 set_output_format (%fmt) Sets the write and print formats to C. This is the same as @@ -493,7 +507,8 @@ This method returns an array of scalars, each of which are the values of the data in the system file. The first call to C after C has been called retrieves the first case in the system file. Each subsequent call retrieves the next -case. If there are no more cases to be read, the function returns undef. +case. If there are no more cases to be read, the function returns an empty +list. If the case contains system missing values, these values are set to the empty string. @@ -505,7 +520,7 @@ values retrieved from a reader. =head3 PSPP::format_value ($value, $variable) -Returns a scalar containing a string representing C formatted accoring +Returns a scalar containing a string representing C formatted according to the print format of C. In the most common ussage, C should be a value of C.