Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: eval "require $class" seems wrongby ikegami (Patriarch) |
on Aug 22, 2007 at 19:20 UTC ( [id://634487]=note: print w/replies, xml ) | Need Help?? |
It uses eval EXPR for #line to work. It has nothing to do with require. (eval BLOCK would suffice if you wanted to catch exceptions.) The following will work (even if your platform doesn't use / as the path seperator):
However, transforming the class name into a path is really no better.
In Section
Seekers of Perl Wisdom
|
|