… | |
… | |
157 | my ($about, $excl) = &find_; |
157 | my ($about, $excl) = &find_; |
158 | my %excl = map +($_ => undef), @$excl; |
158 | my %excl = map +($_ => undef), @$excl; |
159 | grep !exists $excl{$_->[1] + 0}, @$about |
159 | grep !exists $excl{$_->[1] + 0}, @$about |
160 | } |
160 | } |
161 | |
161 | |
162 | =item $ref = Devel::FindRef::ref2ptr $ptr |
162 | =item $ref = Devel::FindRef::ptr2ref $integer |
163 | |
163 | |
164 | Sometimes you know (from debugging output) the address of a perl scalar |
164 | Sometimes you know (from debugging output) the address of a perl scalar |
165 | you are interested in. This function can be used to turn the address into |
165 | you are interested in (e.g. C<HASH(0x176ff70)>). This function can be used |
166 | a reference to that scalar. It is quite safe to call on valid addresses, |
166 | to turn the address into a reference to that scalar. It is quite safe to |
167 | but extremely dangerous to call on invalid ones. |
167 | call on valid addresses, but extremely dangerous to call on invalid ones. |
|
|
168 | |
|
|
169 | # we know that HASH(0x176ff70) exists, so turn it into a hashref: |
|
|
170 | my $ref_to_hash = Devel::FindRef::ptr2ref 0x176ff70; |
168 | |
171 | |
169 | =back |
172 | =back |
170 | |
173 | |
171 | =head1 AUTHOR |
174 | =head1 AUTHOR |
172 | |
175 | |