Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re^4: subclass discovery at runtime

by Gilimanjaro (Hermit)
on Jan 27, 2003 at 18:11 UTC ( [id://230292]=note: print w/replies, xml ) Need Help??


in reply to Re^4: subclass discovery at runtime
in thread subclass discovery at runtime

Yep... You're right... I just figured that out... Discovered an issue with recursing thru the namespace too; seems there's a 'main::main::' entry, which causes infinite recursion, so you'd need to keep track of what namespaces you've checked...
  • Comment on Re: Re^4: subclass discovery at runtime

Replies are listed 'Best First'.
Re^6: subclass discovery at runtime
by Aristotle (Chancellor) on Jan 27, 2003 at 23:00 UTC
    Sort of. There's a main:: in every package; just skip that entry and you'll be fine.

    Makeshifts last the longest.

      Right... Makes sense actually... That way every package can easily access the main package... Ah well... My duplicate-checking code seems to work too... At least I've learnt a bit about the symbol table and such because of this thread... :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-19 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found