Fault::Notepad - A notepad for random text messages.
use Fault::Notepad; $obj = Fault::Notepad->new; $obj = $obj->add ($text); $obj = $obj->addObject ($msg); $obj = $obj->merge ($obj2); $obj = $obj->print; $cnt = $obj->count; $obj = $obj->fprint ($fh); $str = $obj->sprint;
UNIVERSAL
A notepad is a container for random text messages. Notes are added to a list in the sequence recieved and once written are not modifiable.
This is a very early form of the class and it does very little at present other than append Fault::Msg objects to it's internal list and dump text from them on demand.
It is a container for text generated deep in a program which will allow it to be collected and returned to the top level or wherever it may be useful.
use Fault::Notepad; use Fault::Msg; my $obj = Fault::Notepad->new; my $obj2 = Fault::Notepad->new; my $msg = Fault::Msg->("abridging freedom of speech...\n"); $obj->add ("Congress shall pass no law "); $obj2->addObject ($msg); $obj->merge ($obj2); $obj->print; open $fh, ">notepad.tmp"; $obj->fprint ($fh); close $fh;
None.
Create instances of Notepad.
Append a textual note to the notepad.
Append an Fault::Msg object containing a textual note to the notepad. the current time; if the object has digital signatures, create one.
Returns a count of the items on the notepad.
Print contents of Notepad verbatim to file.
Append the contents of the argument notepad object to this notepad.
Print contents of Notepad verbatim to stdout.
Print contents of Notepad verbatim to a string.
See TODO.
Fault::Logger, Fault::Msg.
Dale Amon <amon@vnl.com>
2 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
=back doesn't take any parameters, but you said =back 4
To install Fault::Msg, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fault::Msg
CPAN shell
perl -MCPAN -e shell install Fault::Msg
For more information on module installation, please visit the detailed CPAN module installation guide.