On Wed, May 29, 2002 at 11:11:59AM -0500, Dave Rolsky wrote: > If require is given a string, it looks for a filename _matching_ that > string. If it's given a bareword, it converts '::' to filesystem path > separators first.
<pedantic>
...and appends '.pm' onto the end.
Thus
require Foo::Bar
is the same as:
$module = 'Foo::Bar';
$module =~ s[::][/]g;
$module .= '.pm';
require $module;
If you 'use' the module, then it also does the equivalent of:
$module->import();
</pedantic>
A
