The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NOTE

Term::ExprUI prevents the default method from being called. This is because, after the function lookup fails, instead of passing it to the default method, it passes it to the expression evaluator. This is not a bug. It will go away in the future since the command line will be removed entirely -- you will only have the expression interface.

METHODS

new

The new method takes all of the parameters that may be passed to Term::ShellUI::new, plus some or all of the following functions. They allow you to maintain the symbol table in your application in whatever format you desire.

add_var NAME VAL

Called when the assignment operator is used. Passes the name of the variable to create and the value it should have. Return value is ignored.

get_var NAME

Called whenever a variable is used in the right-hand side of an expression. Takes the name of the variable, returns its value.

get_all_vars

Returns an arrayref of the names of all variables currently defined. Used for command-line completion. Takes no arguments.

get_function_cset

Returns a command set listing all known functions. Used for both displaying help and generating completions. See Term::ShellUI for the definition of a command set. Take no arguments.

call_function NAME ARGS...

Calls a function. Passed the name of the function to call, then all the function's arguments. Returns the function result.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 45:

=over without closing =back

Around line 54:

=over without closing =back