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

Name

qbit::File - Functions to manipulate files.

Functions

readfile

Arguments:

  • $filename - string, file name;

  • %opts - hash, additional arguments:

    • binary - boolean, binary ? binmode($fh) : binmode($fh, ':utf8').

Return value: string, file content.

writefile

Arguments:

  • $filename - string, file name;

  • $data - string, file content;

  • %opts - hash, additional arguments:

    • binary - boolean, binary ? binmode($fh) : binmode($fh, ':utf8').

      append - boolean