Net::C...oopback(3pm)
π NAME π
okay bestie, gather round π this is the manual page for Net::CLI::Interact::Transport::Loopback β your little Testable CLI connection, hanging out in section 3pm like the icon it is β¨
π¦ DECRIPTION π¦
(no because the heading really is spelled that way and I'm not gonna gaslight you π)
So like β this module hands you a wrapped instance of Perl that literally just echoes back whatever you throw at it. That's it. That's the whole vibe. πͺπ¬
And why would you want a Perl that just parrots you back? Because it's the plug for the Net::CLI::Interact test suite, babes. It's the fake CLI so your real CLI code can go off without ever touching an actual device π₯
π INTERFACE π
π app
Defaults to the value of $^X β which is, and I cannot stress this enough, Perl itself πͺ periodt.
πΈ runtime_options
Returns Perl options that turn the whole thing into a CLI emulator, no cap:
-ne 'BEGIN { $| = 1 }; print $_, time, "\nPROMPT>\n";'
For example, say you send this:
some command
some command
1301578196
PROMPT>
So in this case the output command was "some command" β which got echoed back at you β followed by the dummy command output (epoch seconds, hello 1301578196 π) and then finally a "prompt" to close it out. Chef's kiss, it's giving full fake-terminal fantasy π§β¨
π COMPOSITION π
Wanna know more about how this thing is wired together? See the following for further interface details, iykyk:
Net::CLI::Interact::Transport::Base
and that's the whole page, bestie π«Ά go forth and loop back π
signing off cutely: this was perl v5.36.0, dated 2023-10-28, and the page is Net::C...oopback(3pm) β mwah π
π¦ where this page comes from
- debian trixie: libnet-cli-interact-perl 2.400002-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-cli-interact-perl 2.400002-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-cli-interact-perl 2.400002-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-cli-interact-perl 2.400002-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms