Nigel Hamilton > Goo-0.09 > Goo::FileUtilities

Download:
Goo-0.09.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View Bugs
Report a bug
Source  

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

get_last_lines

return the last n lines from a file

AUTHOR ^

Nigel Hamilton <nigel@trexy.com>

SEE ALSO ^