perl-module: Make PSPP::Reader::get_next_case() return a list.
[pspp-builds.git] / perl-module / lib / PSPP.pm
index a56ff4b756d81dcd6fd3136f775ddb615a8b0bff..e9e3215dcf753a45b064e324158953198373b9e0 100644 (file)
@@ -21,7 +21,7 @@ None by default.
 
 =cut
 BEGIN {
-       $PSPP::VERSION='0.7.0';
+       $PSPP::VERSION='0.7.1';
        require XSLoader;
        XSLoader::load('PSPP', $PSPP::VERSION);
 }
@@ -90,6 +90,8 @@ sub new
 =head3 get_var ($idx)
 
 Returns the C<idx>th variable from the dictionary.
+Returns undef if C<idx> is greater than or equal to the number
+of variables in the dictionary.
 
 =cut
 
@@ -491,7 +493,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<get_next_case> after C<open> 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.