Net-CLI-Interact

 view release on metacpan or  search on metacpan

lib/Net/CLI/Interact/Role/Engine.pm  view on Meta::CPAN


Sets a value of C<timeout> for the
Transport local to this call of C<cmd>, that
overrides whatever is set in the Transport, or the default of 10 seconds.

=item C<< no_ors => 1 >> (optional)

When passed a true value, a newline character (in fact the value of C<ors>)
will not be appended to the statement sent to the device.

=item C<< match => $name | $regexpref | \@names_and_regexprefs >> (optional)

Allows this command (only) to complete with a custom match, which must be one
or more of either the name of a loaded phrasebook Prompt or your own regular
expression reference (C<< qr// >>). The module updates the current prompt to
be the same value on a successful match.

=back

In scalar context the C<last_response> is returned (see below). In list
context the gathered response is returned as a list of lines. In both cases



( run in 0.569 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )