| ubertext documentation | Contained in the ubertext distribution. |
Text::UberText::Modules::Info - UberText Info Commands
[uber.info version]
[uber.info environment]
The Info module is used to get information regarding the UberText environment.
The following commands are available in the uber.info namespace.
Returns the version number of Text::UberText.
Returns the language environment, language version, and the operating system UberText is running on.
Chris Josephes <cpj1@visi.com>
Copyright 2002, Chris Josephes. All rights reserved. This module is free software. It may be used, redistributed, and/or modified under the same terms as Perl itself. ~
| ubertext documentation | Contained in the ubertext distribution. |
# # Package Definition # package Text::UberText::Modules::Info; # # Compiler Directives # use strict; use warnings; # # Global Variables # use vars qw/$Dispatch $VERSION /; $Dispatch={ "version" => \&version, "environment" => \&environment, "copyright" => \©right, }; $VERSION=0.95; # # Methods # sub new { my ($class)=shift; my ($object); $object={}; bless ($object,$class); $object->_init(@_); return $object; } sub uberText { my ($self)=shift; return ($self,"uber.info",$Dispatch); } # # UberText Methods # sub version { my ($output); $output="UberText Version $Text::UberText::VERSION"; return $output; } sub environment { my ($output); $output="Perl version $] ($^O)\n"; return $output; } sub copyright { my ($output); $output=<<EO Text::UberText -- Copyright 2002, Chris Josephes EO ; return $output; } # # Hidden Methods # sub _init { my ($self)=shift; return; } # # Exit Block # 1; # # POD Documentation #