dir_listing.pl - Lists the files in the current working directory in a table.
perl dir_listing.pl File Listing: ----------------------------------- |Filename |Size (bytes)|Mode | |--------------|------------|-----| |check.h |5108 |33204| |--------------|------------|-----| |check64bit.cpp|6540 |33204| |--------------|------------|-----| |check64bit.h |3111 |33204| |--------------|------------|-----| |dir_listing.pl|1537 |33216| -----------------------------------
This simple script uses the Data::Formatter::Text module to format a list of the files in the working directory into a table.
Data::Formatter::Text - Formats data stored in scalars, hashes, and arrays into strings, definition lists, bulletted lists, and tables.
Data::Formatter::Text
Zachary Blair, <zblair@cpan.org>
Copyright (C) 2012 by Zachary D. Blair
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Data::Formatter::Text, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Formatter::Text
CPAN shell
perl -MCPAN -e shell install Data::Formatter::Text
For more information on module installation, please visit the detailed CPAN module installation guide.