![]() |
![]()
| ![]() |
![]()
NAMEFile::Slurp::Tiny - A simple, sane and efficient file slurper [DISCOURAGED] VERSIONversion 0.004 SYNOPSISuse File::Slurp::Tiny 'read_file'; my $content = read_file($filename); DISCOURAGEDThis module is discouraged in favor of File::Slurper. While a useful experiment, it turned out to be both too similar to File::Slurp (still containing most problematic features of File::Slurp's interface) and yet not similar enough to be a true drop-in replacement. Bugs will still be fixed, but new features will probably not be added. DESCRIPTIONThis module provides functions for fast and correct slurping and spewing. All functions are optionally exported. FUNCTIONSread_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
AUTHORLeon Timmermans <leont@cpan.org> COPYRIGHT AND LICENSEThis 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.
|