Test2::Util::Ref(3)
π NAME π
okay so this is Test2::Util::Ref(3), bestie β a User Contributed Perl Documentation page all about tools for inspecting or manipulating references. slay.
β¨ DESCRIPTION β¨
These little helpers are used by Test2::Tools to inspect, render, or manipulate references. no cap.
π EXPORTS π
All exports are optional. You must specify subs to import β the module isnβt gonna just dump everything into your namespace uninvited, iykyk.
$type = rtype($ref)β a normalization betweenScalar::Util::reftype()andref(). It always returns a string. It returns'REGEXP'for regex types. It returns''for non-refs. Otherwise it returns whatScalar::Util::reftype()returns. periodt.$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. π
π¦ SOURCE π¦
The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/.
πΈ 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/
Thatβs the whole vibe, bestie. This page is from perl v5.42.0, dated 2025-07-28, and itβs the Test2::Util::Ref(3) manual. π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 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