Text::UberText::Modules::Variables - UberText Variables Modules
[uber.var name:(fruit) value:(apple)] The value of "fruit" is [uber.var name:(fruit)] We are resetting "fruit" to [uber.var name:(fruit) value:(pear) print]
The Variables module creates an internal table of variables that can be manipulated within an UberText document. It is also possible to set and retrieve variables directly from the Variables module, or other perl modules.
Sets the variable $varname to $value. Also returns the current value of $varname.
The name command identifies a variable in the internal table. To change the value of the variable, you need to use the value option. The output from this tag is the value of the variable.
This is an example of using the name command with the value option. There is no output from this tag unless the print option is also specified in the tag.
Chris Josephes <cpj1@visi.com>
Text::UberText
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. ~
To install Text::UberText, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::UberText
CPAN shell
perl -MCPAN -e shell install Text::UberText
For more information on module installation, please visit the detailed CPAN module installation guide.