Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: eval "require $class" seems wrong

by lima1 (Curate)
on Aug 22, 2007 at 18:22 UTC ( #634464=note: print w/replies, xml ) Need Help??


in reply to Re^2: eval "require $class" seems wrong
in thread eval "require $class" seems wrong

Sure, you need an eval here to check whether the module was found and successfully loaded. You need the eval in the first case to interpolate the module name and turn it into a bareword, or not?
  • Comment on Re^3: eval "require $class" seems wrong

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2020-10-31 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (287 votes). Check out past polls.

    Notices?