My - modules with my favorite API.
BEGIN {
use My;
abuse qw(My::Debug :0 varlog $debug_print);
abuse qw(My::GetOpt :0 import_options :getopt set);
abuse qw(My::Util::TempName tmpnam);
...
}
My modules provide various utility functions with my favorite programming interfaces. Gzipped tar ball of very alpha version is available.
You first (or after package name declaration) have to declare to use
``My.pm''. Then you may call following subroutins to use package-name and to import some names in the package. In most cases, you should put the
subroutine calls into a BEGIN block.
options are one of the following form:
This option specifies that the succeeding names are imported from the
package of the name package-name
with trailing digits components removed. The option :1 is supplied by default.
For example, the subroutine call
abuse qw(My::Util::Packs packs);
loads the module My/Util/Packs.pm, and then makes the name packs an alias of My::Util::packs.
(undocumented yet.)
(undocumented yet.)
(undocumented yet.)
format-string is used to generate the names which are aliases of imported names, with the
builtin sprintf.
The contents of the file of the name path.ph are evaluated in the package My::Sys, and then importation is done in the same manner as abuse.
My.pm also provides some OO progrmmaing support.
The value of this subroutine is the package name of caller followed by the string ``::internal''. This is mainly intended to be used as the name of place where private data of each class reside.
Here is the list of currently available module names. For details, see the documents of each module (though most of them are not written yet).
Base64 decoder/encoder.
Subroutines for CGI script writers.
Subroutines to manage and communicate with child processes.
Convert a keywrod=value style configuration file to a Perl data.
Convert various date formats to UTC time.
Subroutines for ``printf debugging''.
Walk around a directory and its descendants.
Process command line options.
To analyze results of examinations.
For InterNetNews channel feeders.
Subroutines for I/O handling.
Detect and convert encoding of Japanese text.
Modify message header of a mail to post it as a netnews article.
For mail delivery agent writers.
For gateways among varias Internet message exchanging protocols (mainly between SMTP and NNTP).
Modify message header of a netnews article to send it as a mail.
Handle NetNews Transfer Protocol.
Table driven printf class.
Handle messages conforming to MIME.
Handle messages conforming to RFC822.
Handle Simple Mail Transfer Protocol (minimal implimentation).
Handle Berkley socket interface.
Miscellaneous things around operating system interfaces.
Provide syslog related constants.
Abstract class to impliment a state machine.
Split a text into tokens.
Parse Uniform Resource Identifiers.
Methods in UNIVERSAL class.
Miscellaneous utility subroutines.
Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
<http://pub.ks-and-ks.ne.jp/prog/perl.shtml >
Any questions or comments about this page are greatly appreciated.
Almost all contents in this site are written by Kiyokazu SUTO (i.e. me) unless especially noted. I want to put all of them into the PUBLIC DOMAIN, even though some lawyers mention that it is impossible in my country.