Devel:...entify(3pm)
π NAME π
Devel::MAT::Tool::Identify β bestie, it identifies an SV by its referrers. That's it, that's the whole vibe. It lives in section 3pm (that perl module manpage energy), and up top the header calls it Devel:...entify(3pm) so you know you're in the right place π
β¨ DESCRIPTION β¨
Okay so listen. This Devel::MAT tool hands you a command that identifies an SV by literally walking up its tree of inrefs. Like, it climbs the whole ancestry and prints the useful info so you can figure out what that SV even is, based on how it can be reached from the well-known program roots. It's giving detective but make it memory analysis ππ
π«Ά COMMANDS π«Ά
πΈ identify
No cap, here's the whole energy:
pmat> identify 0x1bbf640
IO() at 0x1bbf640 is:
ββthe io of GLOB(@*I) at 0x1bbf628, which is:
ββthe ARGV GV
It prints a whole tree of the identification of the SV sitting at the address you gave it. So pretty, so informative.
And it takes these named options, periodt:
--depth D,-d Dβ caps the output at the given number of steps away from that initial SV you handed over. Keeps things from spiraling π--weakβ includes weak direct references in the output. By default, only strong direct ones make the cut. Choose your fighters π₯--allβ now we're including both weak and indirect references in the output. Everything, all of it, no crumbs left behind π₯--no-elide,-nβ do not elide structure in the output. Bestie, let me explain why this one matters:
By default, REF()-type SVs get skipped over β that's the default behaviour and it leads to a shorter, neater output by yeeting this usually-unnecessary noise. If you don't give this option, those elided reference SVs get notated by adding (via RV) to the reference description. Cute, right? π
Additionally β and this is the big one β members of the symbol table get printed as being root SVs, noting their symbol table name. This avoids all that extra nesting from the stashes and globs that make up the symbol table. It can also cause SVs to be recognised as symbol table entries when, without it, they might get cut off entirely because of the depth limit. So like, it's not just cosmetic, iykyk π
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk> β the icon, the moment, the legend. Stan forever π«Ά
And that's a wrap, bestie! This little beaut came from perl v5.42.3, dated 2026-08-21, and the page was sitting right there under Devel:...entify(3pm) the whole time. Go forth and identify something iconic β¨ππ¦
π¦ where this page comes from
- ubuntu stonking: libdevel-mat-perl 0.54-1build1 Β· 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