in reply to Are dynamic 'use' statements possible?
Well, since evaluation of use happens at compile time, you should try something with eval to make it work. But it is an approach that I would use to load third parties' modules on the fly, not mine
Since you described a situation where you are writing your own configuration, I suggest to read perlmod and the Exporter module's documentation. There you should find how to write modules that export variables in your program's namespace. And, since you write them, you can make them work with a simple require, which is evaluated at runtime
disclaimer: I wouldn't do the job that way, but you look like searching for the simplest solution, not the best one :-)
Ciao!
--bronto
# Another Perl edition of a song:
# The End, by The Beatles
END {
$you->take($love) eq $you->made($love) ;
}
|
|---|