X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=perl-module%2Flib%2FPSPP.pm;h=2dccd10a36973e560e8be7d267b92f9bdb918ac1;hb=71fa94505d7d559e3f6bb90092268225db826732;hp=2ea613dee31b8ae987779ec7e2865f2a1cf73e98;hpb=77612c9127e474daf7f06ba4dce7935b8eaf4052;p=pspp-builds.git diff --git a/perl-module/lib/PSPP.pm b/perl-module/lib/PSPP.pm index 2ea613de..2dccd10a 100644 --- a/perl-module/lib/PSPP.pm +++ b/perl-module/lib/PSPP.pm @@ -21,7 +21,7 @@ None by default. =cut BEGIN { - do 'pspp-vers.pl' || die "No version set"; + $PSPP::VERSION='0.7.2'; require XSLoader; XSLoader::load('PSPP', $PSPP::VERSION); } @@ -87,9 +87,15 @@ 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. +Returns undef if C is greater than or equal to the number +of variables in the dictionary. =cut @@ -191,7 +197,7 @@ package PSPP::Var; =head3 new ($dict, $name, %input_fmt) Creates and returns a new variable in the dictionary C. The -new variable will have the name C. +new variable will have the name C. C must be a valid UTF8 string. The input format is set by the C parameter (See L). By default, the write and print formats are the same as the input format. @@ -220,7 +226,7 @@ sub new =head3 set_label ($label) -Sets the variable label to C