Devel:...Concise(3pm)

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

✨ NAME ✨

Devel::REPL::Plugin::B::Concise β€” it dumps optrees of expressions using B::Concise, bestie πŸ’… (this is the Devel:...Concise(3pm) page btw, in case the filename threw you)


πŸŽ€ VERSION πŸŽ€

version 1.003029 β€” yes she's got a number, and yes it's iconic


🌸 SYNOPSIS 🌸

repl> #concise -exec -terse {
> foo => foo(),
> }
COP (0x138b1e0) nextstate
OP (0x13bd280) pushmark
SVOP (0x138c6a0) const  PV (0xbbab50) "foo"
OP (0x13bbae0) pushmark
SVOP (0x13bcee0) gv  GV (0xbbb250) *Devel::REPL::Plugin::B::Concise::foo
UNOP (0x13890a0) entersub [1]
LISTOP (0x13ba020) anonhash
UNOP (0x5983d0) leavesub [1]

look at that output. that's the optree, laid bare. we love to see it πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: this plugin hands you a concise command, and what it does is use B::Concise to dump the optrees of expressions. it's giving x-ray vision for your Perl, fr fr ✨

big caveat tho β€” the code is not actually executed. not even a little. which means when you're running it alongside Deve::REPL::Plugin::OutputCache, there's no new value landing in _. nothing. empty. the _ stays exactly how it was, no cap 😭

and the command? she takes the same options as compile in B::Concise. so like -basic or -exec if you wanna pick the dump order, and -debug, -concise, -terse to decide the formatting, etc. mix and match, do your thing, it's your world πŸ‘‘


🫢 SUPPORT 🫢

got bugs? not on my watch β€” report them through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-REPL>, or you can email bug-Devel-REPL@rt.cpan.org <mailto:bug-Devel-REPL@rt.cpan.org> πŸ’Œ

also there's an IRC channel for everyone using this distribution, it lives at #devel on irc.perl.org <irc://irc.perl.org/#devel-repl>. come hang, the vibes are immaculate 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Yuval Kogman <nothingmuch@woobling.org> β€” legend behavior, honestly


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. so like, go off, remix it, slay πŸ’…


and that's a wrap bestie β€” this page came from perl v5.34.0, dated 2022-06-03, and yeah the manpage title is Devel:...Concise(3pm). periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from