in reply to Automated installation from CPAN

Depending on what prompts you mean, configuring it to follow prerequisites automatically could do it:

cpan cpan> o conf prerequisites_policy follow cpan> quit

Alternatively, take a look at App::cpanminus.