I dig that, but since the eval is a runtime construct how would something like eval "use Module::Name;" differ from eval "require Module::Name"? Is there any difference in the use of "use" as opposed to "require" in that context?<br>
<br>--<br clear="all"><a href="mailto:dave.s.doyle@gmail.com">dave.s.doyle@gmail.com</a><br>
<br><br><div class="gmail_quote">On Wed, Dec 9, 2009 at 11:38 PM, Liam R E Quin <span dir="ltr"><<a href="mailto:liam@holoweb.net">liam@holoweb.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Wed, 2009-12-09 at 22:27 -0500, Dave Doyle wrote:<br>
[...]<br>
<div class="im">> Though I'm hardpressed to explain why, using "require" instead of<br>
> "use" seems to be more canonical when dynamically loading modules.<br>
<br>
</div>That's because, in general, "use" is compile-time, and "require" is<br>
done at run-time.<br>
<br>
If you don't know what module you want until run-time, or<br>
you don't know if a particular module will be needed ,"require"<br>
is a good option.<br>
<br>
Liam<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Liam Quin - XML Activity Lead, W3C, <a href="http://www.w3.org/People/Quin/" target="_blank">http://www.w3.org/People/Quin/</a><br>
Pictures from old books: <a href="http://fromoldbooks.org/" target="_blank">http://fromoldbooks.org/</a><br>
Ankh: <a href="http://irc.sorcery.net" target="_blank">irc.sorcery.net</a> <a href="http://irc.gnome.org" target="_blank">irc.gnome.org</a> <a href="http://www.advogato.org" target="_blank">www.advogato.org</a><br>
<br>
</font></blockquote></div><br>