DOKK / manpages / debian 10 / libnet-cli-interact-perl / Net::CLI::Interact::Transport::Loopback.3pm.en
Net::CLI::Interact::Transport::Loopback(3pm) User Contributed Perl Documentation Net::CLI::Interact::Transport::Loopback(3pm)

Net::CLI::Interact::Transport::Loopback - Testable CLI connection

This module provides a wrapped instance of Perl which simply echoes back any input provided. This is used for the Net::CLI::Interact test suite.

Defaults to the value of $^X (that is, Perl itself).

Returns Perl options which turn it into a CLI emulator:

 -ne 'BEGIN { $| = 1 }; print $_, time, "\nPROMPT>\n";'

For example:

 some command
 some command
 1301578196
 PROMPT>

In this case the output command was "some command" which was echoed, followed by the dummy command output (epoch seconds), followed by a "prompt".

See the following for further interface details:

Net::CLI::Interact::Transport::Base
2017-11-08 perl v5.26.1