Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Most effective way to dynamically load a module?

by jbrugger (Parson)
on Aug 22, 2006 at 05:04 UTC ( #568765=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($class !~ /^[a-z0-9_]*$/i) {
            print $cgi->header();
    ...
            exit();
    }
    
  2. or download this
            eval {
                    require $class . ".pm";
    ...
            }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2023-06-09 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (35 votes). Check out past polls.

    Notices?