|
Packit |
be8974 |
File::Slurp.pm
|
|
Packit |
be8974 |
===========================
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
This module provides subroutines to read or write entire files with a
|
|
Packit |
be8974 |
simple call. It also has a subroutine for reading the list of filenames
|
|
Packit |
be8974 |
in a directory.
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
In the extras/ directory you can read an article (slurp_article.pod)
|
|
Packit |
be8974 |
about file slurping and also run a benchmark (slurp_bench.pl) that
|
|
Packit |
be8974 |
compares many ways of slurping/spewing files. This benchmark was
|
|
Packit |
be8974 |
rewritten for .14 and is much better.
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
This module was first written and owned by David Muir Sharnoff (MUIR on
|
|
Packit |
be8974 |
CPAN). I checked out his module and decided to write a new version
|
|
Packit |
be8974 |
which would be faster and with many more features. To that end, David
|
|
Packit |
be8974 |
graciously transfered the namespace to me.
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
There have been some comments about the somewhat unusual version number.
|
|
Packit |
be8974 |
The problem was that David used a future date (2004.0904) in his version
|
|
Packit |
be8974 |
number, and the only way I could get CPAN to index my new module was to
|
|
Packit |
be8974 |
make it have a version number higher than the old one, so I chose the
|
|
Packit |
be8974 |
9999 prefix and appended the real revision number to it.
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
INSTALLATION
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
To install this module type the following:
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
perl Makefile.PL
|
|
Packit |
be8974 |
make
|
|
Packit |
be8974 |
make test
|
|
Packit |
be8974 |
make install
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
COPYRIGHT AND LICENCE
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
Copyright (C) 2010 Uri Guttman <uri@PerlHunter.com>
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
Licensed the same as Perl.
|