The autoindex function takes as argument a directory and an optional named sort_field parameter for sorting, and returns a arrayref with hashrefs with the relevant file information:
[ { 'location' => './../', 'mod_time' => '08-Apr-2013 12:58', 'name' => '..', 'size' => '-' }, { 'location' => 'test.txt', 'mod_time' => '08-Apr-2013 15:04', 'name' => 'test.txt', 'size' => '13B' } ];
You may want to specify a sort_field parameter to sort the listing (by default "name") and a file system encoding (by default "utf-8");
sort_field
To install Dancer::Plugin::Dropbox, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::Dropbox
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::Dropbox
For more information on module installation, please visit the detailed CPAN module installation guide.