Closed dolmen closed 9 years ago
File::Copy and Perl::OSType are used only for copy_to and move_to. This is a marginal use case for Path::Class.
File::Copy
Perl::OSType
copy_to
move_to
Path::Class
So this patch delays the loading of File::Copy and Perl::OSType to the first time they are used by those methods.
Sounds good - I can't promise they'll stay lazy-loaded if there are other uses of File::Copy and Perl::OSType later, but at least for now it's a good way to go.
File::Copy
andPerl::OSType
are used only forcopy_to
andmove_to
. This is a marginal use case forPath::Class
.So this patch delays the loading of
File::Copy
andPerl::OSType
to the first time they are used by those methods.