The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Goo::FileUtilities - General file handling utilities

SYNOPSIS

use Goo::FileUtilities;

DESCRIPTION

File utility functions.

METHODS

get_mtime

get file modification time

get_file_hash

return a hash of files and their contents

get_short_file_list

return a list of filenames in a directory

get_file_list

return a list of file based on a directory glob

get_file_as_string_ref

return a string_ref to the contents of a file

get_file_as_string

return the file contents as a string

write_file

write a file

get_file_as_lines

return the file contents as an array of lines

write_lines_as_file

write an array of lines to a file

get_suffix

return the suffix of this filename

get_path

return the path portion of the filename

slurp

Perl6 synonym for get_file_as_string

get_cwd

return the current working directory

AUTHOR

Nigel Hamilton <nigel@trexy.com>

SEE ALSO