Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: AUTOLOAD mystery

by rinceWind (Monsignor)
on Jul 22, 2005 at 10:53 UTC ( #477175=note: print w/replies, xml ) Need Help??

in reply to AUTOLOAD mystery

Although single stepping gives the 100 levels message, setting a breakpoint on AUTOLOAD catches the problem and gives you enough information about what is going on. I've encountered this one myself, when I was doing "creative" things with AUTOLOAD.

A more interesting and challenging problem is what happens when there is inheritance. Perl scans the @ISA tree and will call a sub there if it finds one. If there was no sub in the whole tree of name spaces, it then scans the @ISA tree for an AUTOLOAD sub. Have a peep inside the source code of my module Devel::Leak::Object for a convoluted example.


Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://477175]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2020-05-25 18:19 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (146 votes). Check out past polls.