GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DEVEL::POINTER (3)

.ds Aq ’

NAME

Devel::Pointer - Fiddle around with pointers

CONTENTS

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 cant do that, but you get the idea

  $c = deref(-1);        # *(-1), and the resulting segfault.



DESCRIPTION

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.

    EXPORT

All of the above

AUTHOR

Simon Cozens, simon@cpan.org

SEE ALSO

Devel::Peek, perlref, B::Generate
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 POINTER (3) 2001-09-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.