Test2::Util::Ref(3pm)
π Test2::Util::Ref(3pm) β Perl Programmers Reference Guide π
okay so this is the glow-up of Test2::Util::Ref, and itβs literally about tools for inspecting or manipulating references. bestie, if youβre in Test2::Tools land, these little helpers are your new faves. π
β¨
π NAME π
Test2::Util::Ref β Tools for inspecting or manipulating references. π«Ά
πΈ DESCRIPTION πΈ
Theyβre used by Test2::Tools to inspect, render, or manipulate references. no cap, thatβs the whole vibe. π¦
β¨ EXPORTS β¨
All exports are optional. You must specify subs to import. (Iconic βopt-in onlyβ behavior, honestly. π )
$type = rtype($ref)β a normalization betweenScalar::Util::reftype()andref(). It always returns a string. Returns'REGEXP'for regex types. Returns''for non-refs. Otherwise returns whatScalar::Util::reftype()returns. slay. β¨$addr_str = render_ref($ref)β always returns a string. For unblessed references this returns something like"SCALAR(0x...)". For blessed references it returns"My::Thing=SCALAR(0x...)". The only difference between this and$add_str = "$thing"is that it ignores any overloading to ensure it is always the ref address. literally the βjust give me the addressβ button. π₯
π¦ SOURCE π¦
The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/. go off, repo. π«Ά
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
π§ AUTHORS π§
- Chad Granum
<exodist@cpan.org> - Kent Fredric
<kentnl@cpan.org>
π COPYRIGHT π
Copyright Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/.
byeeee bestie, and hereβs the footer vibe: perl v5.42.3, 2026-11-03, Test2::Util::Ref(3pm). ππ¦π
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms