in reply to Re^4: require mystery
in thread require mystery
Perl allows barewords or strings (which are basically the same, except that a bareword comes without quotes, hence, "bare") as invocants:
File::Path->import(...)
is the same as:
"File::Path"->import(...)
and
my $pathtool = "File::Path"; $pathtool->import(...)
and all three translate to:
File::Path::import("File::Path",...);
In Section
Seekers of Perl Wisdom