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

NAME

Text::Amuse::Compile::Utils - Common routines used

FILE READING/WRITING/APPENDING

These functions are replacements for File::Slurp, which has deemed deprecated. Candidate modules are File::Slurp::Tiny and Path::Tiny. But given that we always use utf8, and don't need all the Path::Tiny features (which are cool, but would make sense to use them everywhere instead of File::Spec etc, let's cook our own in the meanwhile.

The following functions always use the binmode encoding(UTF-8) on the files, so they takes and return decoded strings.

The purpose of this module is just to save some typing.

read_file($file)

write_file($file, @strings)

append_file($file, @strings)

EXPORTS

None by default, only on demand.