Installing CPAN module with all dependencies

To stop CPAN from asking 'yes/no' when installing a module, use this command.

PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install My::Module'

(Works in bash only)

There is other ways involving configuring CPAN but this is the easiest and simpler way