App::Dapper::Utils - Common utility functions used throughout Dapper.
Read a file and return a scalar with the file's contents.
Takes a file and returns the last modified time of the file.
Takes an input string (e.g. the title of a blog post) and "slugifies" it, meaning that it removes non-ASCII characters, removes all non-word characters (e.g. '_', '-', etc.), and removes leading and trailing whitespace.
Takes a string, returns <template> part of the first "use <template> template" line.
Takes a string, removes all "use <template> template" statements and returns what's left.
Takes a string (filename) and returns the extension.
Takes a filename and returns the stem of the file name (without the extension).
Takes a file name and a string of the content and writes it to disk.
Takes a directory name and creates it on disk.
To install App::Dapper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Dapper
CPAN shell
perl -MCPAN -e shell install App::Dapper
For more information on module installation, please visit the detailed CPAN module installation guide.