Gagan Gagan - 3 months ago 21
Perl Question

How to install Data::Printer perl module?

perl -e "use Data::Printer"


Error:

Can't locate Data/Printer.pm in @INC (you may need to install the Data::Printer module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Answer

From the terminal:

cpan Data::Printer

This will install the module and any dependencies