I tried to install some perl module using cpan.

and got error:
FAILED--Further testing stopped: ERROR: Access denied for user 'root'@'localhost' (using password: NO)
But when i run command with force option
cpan -f -i DBD::mysql
it skipped errors and finished installation. Then i was able to use Mysqlmonitor app that i needed. But im unsure if that installation is valid. It just worked.