Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Creating packages on the fly

by Gilimanjaro (Hermit)
on Jun 06, 2006 at 13:38 UTC ( [id://553814]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Wx;
    my $symbol_table = Symbol::Table->New(PACKAGE=>'main::Wx');
    while(my $package = each %$symbol_table) {
      eval "package Groninger::Wx::$package; use base 'Wx::$package;";
    }
    
  2. or download this
    use Class::SubclassSet Groninger => qw(Wx::App Wx::Frame Wx::Menu);
    package Class::SubclassSet;
    ...
          eval "package ${into}::$class; use base '$class';";
       }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-03-29 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found