r/perl • 🐪 cpan author • 14d ago

I built a tool to visualize Perl codebases — Perl::CodeMap (now on CPAN)

I've been working with a fairly large legacy Perl codebase and wanted an easier way to explore dependencies and understand how everything fits together.

I came across CodeMap for Go and decided to put together a Perl version.

It uses PPI to analyze source code and generates an interactive HTML visualization with dependency graphs, searchable modules and subroutines, and syntax-highlighted source browsing.

It's still a work in progress, but I've found it useful for navigating unfamiliar code. Figured others dealing with large Perl projects might find it useful too.

Feedback and suggestions welcome.

57 Upvotes

6 comments sorted by

4

u/fuzzmonkey35 14d ago

I love these kinds of things.

2

u/Computer-Nerd_ 14d ago

Fun. Thanks.

2

u/stubbynutz 10d ago

Just tried it! Wish I had it 20 years ago. Well done, and thank you for your Perl community contribution.

2

u/NachoVargaTX 9d ago

This is exactly what I have been looking for.

1

u/bonkly68 🐪 cpan author 4d ago

Neat!