Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: How best to require subclasses at runtime

by Revelation (Deacon)
on Nov 07, 2002 at 21:59 UTC ( [id://211260]=note: print w/replies, xml ) Need Help??


in reply to Re: How best to require subclasses at runtime
in thread How best to require subclasses at runtime

And CPAN has Class::Autouse

OR
# I use $module, because $m is not descriptive enough for me. $package_file = $module . '.pm'; $package_file =~ s~::~/~g; # Should probably use a module to get the seperator, but whatever. require($package_file) or die ( $@ ); $self->{'parser '} = $module->new();


Gyan Kapur
gyan.kapur@rhhllp.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (None)
    As of 2024-04-18 23:42 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found