Install libparse-cpan-packages-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libparse-cpan-packages-perl
module to parse the CPAN Packages file
Parse::CPAN::Packages is a Perl module that parses the package details index file named "02packages.details.txt.gz". This file contains lots of useful information and this module provides a simple interface to the data contained within. . Note that this module does not concern itself with downloading or unpacking the "02packages.details.txt.gz" file; you will need to do this yourself.