Devel::PointerDevel::Pointer is a Perl module that can fiddle around with pointers. | |
Download |
Devel::Pointer Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Simon Cozens
- Publisher web site:
- http://search.cpan.org/~simon/Sub-Versive-0.01/Versive.pm
Devel::Pointer Tags
Devel::Pointer Description
Devel::Pointer is a Perl module that can fiddle around with pointers. Devel::Pointer is a Perl module that can fiddle around with pointers.SYNOPSIS use Devel::Pointer; $a = address_of($b); # a = &b; $b = deref($a); # b = *a; $a = unsmash_sv(0+$scalar_ref); @a = unsmash_av(0+$array_ref); %a = unsmash_hv(0+$hash_ref); &a = unsmash_cv(0+$code_ref); # OK, you can't do that, but you get the idea $c = deref(-1); # *(-1), and the resulting segfault.The primary purpose of this is to turn a smashed reference address back into a value. Once a reference is treated as a numeric value, you can't dereference it normally; although with this module, you can.Be careful, though, to avoid dereferencing things that don't want to be dereferenced.Requirements:· Perl Requirements: · Perl
Devel::Pointer Related Software