| 1 | package Acme::Ref; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use base 'Exporter'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | our @EXPORT_OK = ( 'deref' ); | |||||||||
| 8 | |||||||||||
| 9 | 1 | our $VERSION = '0.03'; | |||||||||
| 10 | |||||||||||
| 11 | 1 | require XSLoader; | |||||||||
| 12 | 1 | XSLoader::load('Acme::Ref', $VERSION); | |||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | sub deref { | ||||||||
|
Subroutine
deref: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 15 | 0 | my $str = shift; | |||||||||
| 16 | 0 | ▶ | unless ($str) { return } | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | $str =~ m/^(.*)\(0x(.*)\)$/; | |||||||||
| 18 | 0 | my ($cls,$ptr) = ($1,$2); | |||||||||
| 19 | 0 | $ptr = hex($ptr); | |||||||||
| 20 | 0 | _deref($ptr); | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 1 | 1; | |||||||||
| 24 | __END__ | ||||||||||