Leon Timmermans > File-Slurp-Tiny-0.003 > File::Slurp::Tiny

Download:
File-Slurp-Tiny-0.003.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  5
View/Report Bugs
Module Version: 0.003   Source  

NAME ^

File::Slurp::Tiny - A simple, sane and efficient file slurper

VERSION ^

version 0.003

SYNOPSIS ^

 use File::Slurp::Tiny 'read_file';
 my $content = read_file($filename);

DESCRIPTION ^

This module provides functions for fast and correct slurping and spewing. All functions are optionally exported.

FUNCTIONS ^

read_file($filename, %options)

Reads file $filename into a scalar. By default it returns this scalar. Can optionally take these named arguments:

read_lines($filename, %options)

Reads file $filename into a list/array. By default it returns this list. Can optionally take these named arguments:

write_file($filename, $content, %options)

Open $filename, and write $content to it. Can optionally take this named argument:

read_dir($dirname, %options)

Open dirname and return all entries except . and ... Can optionally take this named argument:

SEE ALSO ^

AUTHOR ^

Leon Timmermans <leont@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: