Inspecting loaded Perl modules
Tib
Posted on August 20, 2021
#!/usr/bin/env perl
use Acme::Prereq::F;
while (($k, $v) = each (%INC)) {
print "$k => $v\n";
}
That produces:
strict.pm => /usr/share/perl/5.26/strict.pm
warnings.pm => /usr/share/perl/5.26/warnings.pm
Acme/Prereq/F.pm => /usr/local/share/perl/5.26.1/Acme/Prereq/F.pm
🎉
💖 💪 🙅 🚩
Tib
Posted on August 20, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.