You can use Module::Extract::Use under the same terms as Perl itself.