Goo::FileUtilities - General file handling utilities


Goo documentation  | view source Contained in the Goo distribution.

Index


NAME

Top

Goo::FileUtilities - General file handling utilities

SYNOPSIS

Top

use Goo::FileUtilities;

DESCRIPTION

Top

File utility functions.

METHODS

Top

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

get_last_lines

return the last n lines from a file

AUTHOR

Top

Nigel Hamilton <nigel@trexy.com>

SEE ALSO

Top


Goo documentation  | view source Contained in the Goo distribution.