[Melbourne-pm] An old one but an important one

Scott Penrose scottp at dd.com.au
Sun Jan 20 16:00:42 PST 2008


On 21/01/2008, at 10:02 AM, Paul Fenwick wrote:

> G'day Leif, Scott, and Melb.pm,
>
> leif.eriksen at hpa.com.au wrote:
>> I wonder  if there's a way to hook into $& and family, to see stack
>> traces where they are used ? Being global, can you tie them to  
>> something
>> useful ?
>
> Scott wrote:
>
> > I am playing with B::Lint to find them - doesn't help heaps  
> because of
> > dynamic compiled code.
>
> There are also:
>
> 	Devel::SawAmpersand
> 	Devel::FindAmpersand
> 	B::FindAmpersand

B:: and Devel:: FindAmpersand do not work if Perl has been compiled  
with thread support (almost all of them).
But SawAmpersand does - so you can just run it after your loads, and  
narrow it down.

Scott



More information about the Melbourne-pm mailing list