Example usage of the Acme::KeyboardMarathon module. Just give it filename(s) on the command line as arguments and it returns the total distance.
$> ./marathon.pl foo.txt bar.txt baz.txt
To install Acme::KeyboardMarathon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::KeyboardMarathon
CPAN shell
perl -MCPAN -e shell install Acme::KeyboardMarathon
For more information on module installation, please visit the detailed CPAN module installation guide.