This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
loc_tools.pl: do a 'require' before module's function call
authorKarl Williamson <khw@cpan.org>
Tue, 27 Jan 2015 18:41:55 +0000 (11:41 -0700)
committerKarl Williamson <khw@cpan.org>
Sat, 7 Feb 2015 17:02:02 +0000 (10:02 -0700)
commit21732d5c67323d747a91102253591325b3569ec3
tree8c72fd116c9cdca63ea4fb9cd4dc224c77d47949
parent44129e4698cf2866be96e739c41415dda2b74567
loc_tools.pl: do a 'require' before module's function call

This was failing to do the require before testing if the function in the
module existed, so if the require hadn't been done by someone else, it
would show as not existing, and so would fail unnecessarily.

The other fix is to not assume the require has been done, so in the
right circumstances, this could have an undefined function error.  But
all current uses had already done the require, so this bug has yet to
show up.
t/loc_tools.pl