Devel:...urtles(3pm)

πŸ“¦
version 1.003029 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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/>)


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