-use constant { SYSMIS => -(POSIX::DBL_MAX),
- PERL_EPOCH => 12219379200 # Number of seconds between
+use constant { SYSMIS => -(POSIX::DBL_MAX),
+ PERL_EPOCH => 12219379200 # Number of seconds between
The identifiers are the same as those used in pspp to denote formats.
For example C<PSPP::Fmt::F> defines floating point format, and
C<PSPP::Fmt::A> denotes string format.
The identifiers are the same as those used in pspp to denote formats.
For example C<PSPP::Fmt::F> defines floating point format, and
C<PSPP::Fmt::A> denotes string format.
L</set_print_format>). The input format may not be changed after
the variable has been created.
If the variable cannot be created, undef is returned.
L</set_print_format>). The input format may not be changed after
the variable has been created.
If the variable cannot be created, undef is returned.
No more than three missing values may be specified.
=head3 get_attributes()
Returns a reference to a hash of the custom variable attributes.
No more than three missing values may be specified.
=head3 get_attributes()
Returns a reference to a hash of the custom variable attributes.
=head3 new ($filename, $dict [,%opts])
Creates a new system file from the dictionary C<dict>. The file will
=head3 new ($filename, $dict [,%opts])
Creates a new system file from the dictionary C<dict>. The file will
be encoded in UTF-8.
C<opt>, if specified, is a hash containing optional parameters for the
system file. Currently, the only supported parameter is
be encoded in UTF-8.
C<opt>, if specified, is a hash containing optional parameters for the
system file. Currently, the only supported parameter is
the variables in the dictionary corresponding to the system file.
If the case contains strings, then the strings must be UTF8 encoded.
The special value C<PSPP::SYSMIS> may be used to indicate that a value
the variables in the dictionary corresponding to the system file.
If the case contains strings, then the strings must be UTF8 encoded.
The special value C<PSPP::SYSMIS> may be used to indicate that a value
-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<filename>. The string C<filename>
+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<filename>. The string C<filename>
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 an empty
list.
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 an empty
list.
values retrieved from a reader.
=head3 PSPP::format_value ($value, $variable)
values retrieved from a reader.
=head3 PSPP::format_value ($value, $variable)
to the print format of C<variable>.
In the most common usage, C<value> should be a value of C<variable>.
=head3 PSPP::value_is_missing ($value, $variable)
to the print format of C<variable>.
In the most common usage, C<value> should be a value of C<variable>.
=head3 PSPP::value_is_missing ($value, $variable)