Devel:...urtles(3pm)
π Devel::REPL::Plugin::Turtles π
okay bestie, so this is a page from the User Contributed Perl Documentation (that's the 3pm section for the perl girlies keeping track π) and it's literally called Devel::REPL::Plugin::Turtles β Generic command creation using a read hook. yes the name is silly. no we don't make the rules. πΈ
β¨ VERSION β¨
this is version 1.003029 π
π’ DESCRIPTION π’
so like, out of the box, this plugin lets you call commands using a read hook that sniffs out a default_command_prefix followed by a command name. say MYCMD, as an example, because that's the example and we're using it. π
and then the actual routine that gets called for that command? it's constructed by looking for subs named command_MYCMD or expr_MYCMD and executing them. that's it, that's the whole vibe. it finds the sub, it runs the sub. iconic behaviour honestly. β¨
π NOTE π
the "default_command_prefix" is qr/\#/ π so pls be careful if you need that character for literally anything else β for example, '#' being used for the shell escape character in the PDL shell. no cap, they will fight. π
π«Ά SUPPORT π«Ά
if something's broken (or you just need to yell), bugs may be submitted through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-REPL> β or you can email bug-Devel-REPL@rt.cpan.org π
there's also an irc channel for users of this distribution, hanging out at "#devel" on "irc.perl.org" (<irc://irc.perl.org/#devel-repl>) β come thru, the group chat is open π
π AUTHOR π
Matt S Trout - mst (at) shadowcatsystems.co.uk (<http://www.shadowcatsystems.co.uk/>)
π COPYRIGHT AND LICENCE π
this software is copyright (c) 2007 by Matt S Trout - mst (at) shadowcatsystems.co.uk (<http://www.shadowcatsystems.co.uk/>).
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, legally speaking. π
k that's the whole page bestie, go forth and prefix your commands π’π¨
mwah π β this was perl v5.34.0, dated 2022-06-03, and yes it's still serving looks
π¦ where this page comes from
- debian bookworm: libdevel-repl-perl 1.003029-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdevel-repl-perl 1.003029-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdevel-repl-perl 1.003029-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdevel-repl-perl 1.003029-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdevel-repl-perl 1.003029-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