Listing all Perl modules in @INC

A commonly asked question by sysadmins is how to list all perl modules – installed and known to perl – on a system.

This is how i do it:

* I took this somewhere from perlmonks a long time ago.