X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=perl-module%2Flib%2FPSPP.pm.in;h=be4b02ea3c8c432b1e23310e7356b66587be4415;hb=4b2eb0d1ce8df60aa43e2fe37628ae00b80d1115;hp=a99c77db275aed0c4345893be575669e5c9c0573;hpb=3bb1629e0b8ef14c9e3c9459239335b81f7f8204;p=pspp diff --git a/perl-module/lib/PSPP.pm.in b/perl-module/lib/PSPP.pm.in index a99c77db27..be4b02ea3c 100644 --- a/perl-module/lib/PSPP.pm.in +++ b/perl-module/lib/PSPP.pm.in @@ -402,7 +402,8 @@ package PSPP::Sysfile; =head3 new ($filename, $dict [,%opts]) Creates a new system file from the dictionary C. The file will -be written to the file called C. +be written to the file called C. The string C must +be encoded in UTF-8. C, if specified, is a hash containing optional parameters for the system file. Currently, the only supported parameter is C. If C is non zero, then the system file written @@ -481,7 +482,15 @@ Opens a system file for reading. Open is used to read data from an existing system file. It creates and returns a PSPP::Reader object which can be used to read -data and dictionary information from C. +data and dictionary information from C. The string C +must be in UTF-8 encoding. + +=head3 get_case_cnt () + +Returns the number of cases in a open system file. Some files +do not store the number of cases. In these instances undef +will be returned. Therefore, then programmer must check that the +returned value is not undef before using it. =cut