The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Lyskom::TextStat - text information object.

SYNOPSIS

  print localtime($obj->creation_time);

  print "This text has the subject: ",$obj->subject,"\n";

DESCRIPTION

Object returned by the get_text_stat method in the main Net::Lyskom class. Also fronts for get_text(), since one often wants the text mass after getting the text meta-information.

Methods

->creation_time()

Returns the creation time as a Net::Lyskom::Time object.

->author()

Returns the person number of the author.

->no_of_lines()

Returns the number of lines.

->no_of_chars()

Returns the number of characters.

->no_of_marks()

Returns the number of marks.

->misc_info()

Returns a compacted list of Net::Lyskom::MiscInfo object. See the documentation for the class for the meaning of "compacted".

->aux_items()

Returns a list of Net::Lyskom::AuxInfo objects.

->subject()

Returns the subject line of the text. Calls get_text(), and caches both the subject and body internally. Both this method and the following one always fetch the entire text. If you want something else, call get_text() yourself.

If the fetched text has a content-type AuxItem, and the running Perl instance knows how to convert from that encoding, the subject will be decoded into Perl's internal representation before being returned. If there is no declared content type or the running Perl can't deal with it, the content will be left untouched.

->body()

As above, but return the body instead of the subject.