DEV Community

Tib
Tib

Posted on

3 1

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

🎉

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay