Text::UberText::Modules::Variables - UberText Variables Modules


ubertext documentation  | view source Contained in the ubertext distribution.

Index


NAME

Top

Text::UberText::Modules::Variables - UberText Variables Modules

SYNOPSIS

Top

 [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]

DESCRIPTION

Top

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.

METHODS

Top

$value=$variable->variable($varname,$value);

Sets the variable $varname to $value. Also returns the current value of $varname.

DOCUMENT COMMANDS

Top

[uber.var name:(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.

[uber.var name:(varname) value:(value) print]

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.

AUTHOR

Top

Chris Josephes <cpj1@visi.com>

SEE ALSO

Top

Text::UberText

COPYRIGHT

Top


ubertext documentation  | view source Contained in the ubertext distribution.