Inspecting loaded Perl modules

thibaultduponchelle

Tib

Posted on August 20, 2021

Inspecting loaded Perl modules
#!/usr/bin/env perl

use Acme::Prereq::F; 

while (($k, $v) = each (%INC)) { 
    print "$k => $v\n";
}
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

🎉

💖 💪 🙅 🚩
thibaultduponchelle
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.

Related

Introduction to Messaging Systems with Kafka
distributedsystems Introduction to Messaging Systems with Kafka

November 28, 2024

Cacti Kurulumu
cacti Cacti Kurulumu

November 27, 2024

Perl Weekly #696 - Perl 5 is Perl
perl Perl Weekly #696 - Perl 5 is Perl

November 25, 2024