Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Is dynamic loading of pm's a bad thing?

by CassJ (Sexton)
on Jun 28, 2004 at 17:00 UTC ( [id://370251]=note: print w/replies, xml ) Need Help??


in reply to Re: Is dynamic loading of pm's a bad thing?
in thread Is dynamic loading of pm's a bad thing?

If anyone's still interested, I did it like this in the end...
sub create_data_parser{ my $class = shift; my %params = @_; my $parser = "EP::Core::Data::Parser::".$params{data_type}; require (locate $parser) ? return $parser->new(%params) : die "Cou +ldn't load parser"; }

Cxx

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-18 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found