|
Packit |
be8974 |
Revision history File::Slurp
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.19 Tue Jun 7 04:06:06 EDT 2011
|
|
Packit |
be8974 |
- Fixed use line in t/edit_file.t to import :edit first
|
|
Packit |
be8974 |
Thanks to paul
|
|
Packit |
be8974 |
- read_file and write_file work even when interrupted by signals
|
|
Packit |
be8974 |
this includes a test for read_file interrupt
|
|
Packit |
be8974 |
Thanks to Andrew Danforth
|
|
Packit |
be8974 |
- Fixed bugs in the config synopsis example
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.18 Fri May 13 02:30:05 EDT 2011
|
|
Packit |
be8974 |
- Added :std and :edit export tags
|
|
Packit |
be8974 |
- Cleaned up EXPORT vars
|
|
Packit |
be8974 |
- Documented importing edit_file and edit_file_lines
|
|
Packit |
be8974 |
- Fixed some pod spelling
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.17 Wed Apr 27 02:20:03 EDT 2011
|
|
Packit |
be8974 |
- Requiring Perl 5.6.2 (first time older Perls were dropped)
|
|
Packit |
be8974 |
This is because of use of the re 'taint' pragma
|
|
Packit |
be8974 |
- Added major new features: edit_file and edit_file_lines
|
|
Packit |
be8974 |
- Speed up of tainted slurp with return of lines
|
|
Packit |
be8974 |
- Added chomp option to read_file
|
|
Packit |
be8974 |
- Added prefix option to read_dir
|
|
Packit |
be8974 |
- Fixed optimization of reading small files.
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.16 Wed Apr 13 03:47:26 EDT 2011
|
|
Packit |
be8974 |
- Added support for read_file options to be a hash reference.
|
|
Packit |
be8974 |
- Added support for read_dir options to be a hash reference.
|
|
Packit |
be8974 |
- Added new feature prepend_file
|
|
Packit |
be8974 |
- Fixed bug with array_ref in list context. was introduced by .15/.14
|
|
Packit |
be8974 |
Thanks to Norbert Gruener
|
|
Packit |
be8974 |
- Cleaned up some pod
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.15 Thu Mar 24 16:40:19 EDT 2011
|
|
Packit |
be8974 |
- Fixed error.t test so it works when run as root
|
|
Packit |
be8974 |
- Removed skip lines from error.t
|
|
Packit |
be8974 |
- Fixed pod about binmode option to reflect changes in .14
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.14 Sun Mar 20 16:26:47 EDT 2011
|
|
Packit |
be8974 |
- Added LICENCE (same as perl) to POD
|
|
Packit |
be8974 |
- Added special faster code to slurp in small text files which
|
|
Packit |
be8974 |
is a common case
|
|
Packit |
be8974 |
- Rewrote the extras/slurp_bench.pl script. It has a full
|
|
Packit |
be8974 |
legend, better CLI options, size is selectable, benchmark
|
|
Packit |
be8974 |
entries have more consistant names and it compares the new
|
|
Packit |
be8974 |
fast slurp for small files to the general slurp code.
|
|
Packit |
be8974 |
Thanks to Mark Friendlich
|
|
Packit |
be8974 |
- Cleaned up pod
|
|
Packit |
be8974 |
- Added more Synopsis examples
|
|
Packit |
be8974 |
- Added t/error.t to actually test error conditions. Previous
|
|
Packit |
be8974 |
error.t was renamed to error_mode.t which better reflects its
|
|
Packit |
be8974 |
tests.
|
|
Packit |
be8974 |
- t/error.t uses a new test driver module. this may get used by
|
|
Packit |
be8974 |
other tests in the future.
|
|
Packit |
be8974 |
- Fixed check for SEEK_SET and other constant subs being defined
|
|
Packit |
be8974 |
- Added support for binmode other than :raw and binmode.t test
|
|
Packit |
be8974 |
Thanks to Martin J. Evans, Peter Edwards, Bryce Nesbitt
|
|
Packit |
be8974 |
- Added support for perms option in write_file and perms.t test
|
|
Packit |
be8974 |
Thanks to Peter Corlett and Paul Miller
|
|
Packit |
be8974 |
- Added check to the rename call in atomic mode. Tested in error.t.
|
|
Packit |
be8974 |
Thanks to Daniel Scott Sterling
|
|
Packit |
be8974 |
- Added POD to state that using scalar_ref or buf_ref will be faster
|
|
Packit |
be8974 |
and save memory due to not making a copy
|
|
Packit |
be8974 |
Thanks to Peter Edwards
|
|
Packit |
be8974 |
- read_file in list mode keeps data tainted
|
|
Packit Service |
d54d9c |
Thanks to Sébastien Aperghis-Tramoni
|
|
Packit |
be8974 |
- read_file checks for an overloaded object to get the file
|
|
Packit |
be8974 |
name.
|
|
Packit Service |
d54d9c |
Thanks to Sébastien Aperghis-Tramoni
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.13 Tue Oct 10 02:04:51 EDT 2006
|
|
Packit |
be8974 |
- Refactored the extras/slurp_bench.pl script. It has options,
|
|
Packit |
be8974 |
a key the benchmarks, help and more benchmarks.
|
|
Packit |
be8974 |
- Reordered changes so recent entries are first
|
|
Packit |
be8974 |
- Added error check on atomic rename and test for it
|
|
Packit |
be8974 |
Thanks to Daniel Scott Sterling
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.12 Thu Feb 2 02:26:31 EST 2006
|
|
Packit |
be8974 |
- Fixed bug on windows with classic slurping and File::Slurp not
|
|
Packit |
be8974 |
agreeing on newline conversion.
|
|
Packit |
be8974 |
- Added t/newline.t test to check for that fix.
|
|
Packit |
be8974 |
- When passing text data by scalar reference to write_file under
|
|
Packit |
be8974 |
windows, the buffer is copied so the newline conversion won't
|
|
Packit |
be8974 |
modify the caller's data.
|
|
Packit |
be8974 |
- Thanks to Johan Lodin <lodin@cpan.org> for a test script which
|
|
Packit |
be8974 |
I modified into t/newline.t
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.11 Fri Jan 20 01:24:00 EDT 2005
|
|
Packit |
be8974 |
- Quick release to remove code that forced the faked SEEK_*
|
|
Packit |
be8974 |
values to be used. Showed up when tested on OSX which doesn't
|
|
Packit |
be8974 |
need that backport.
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.10 Thu Jan 19 11:38:00 EDT 2005
|
|
Packit |
be8974 |
- t/*.t modules don't use Fcntl.pm
|
|
Packit |
be8974 |
- using POSIX qw( :fcntl_h ) instead of Fcntl qw( :seek ) for
|
|
Packit |
be8974 |
backwards compatiblity to 5.00503
|
|
Packit |
be8974 |
- added conditional definitions of SEEK_* and O_* subs as they are not
|
|
Packit |
be8974 |
defined in perl 5.004
|
|
Packit |
be8974 |
- File::Slurp now runs on perl 5.004 and newer (see BUGS section)
|
|
Packit |
be8974 |
All of the above thanks to Smylers <Smylers@stripey.com>,
|
|
Packit |
be8974 |
Piers Kent <piers.kent@bbc.co.uk> and
|
|
Packit |
be8974 |
John Alden <john.alden@bbc.co.uk>
|
|
Packit |
be8974 |
- Added pod.t and pod_coverage.t tests. This is to pass all
|
|
Packit |
be8974 |
the CPANTS tests.
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.09 Tue Apr 19 01:21:55 EDT 2005
|
|
Packit |
be8974 |
- t/original.t and read_dir.t no longer search for tempdirs. they just
|
|
Packit |
be8974 |
use the current dir which should be in the build directory
|
|
Packit |
be8974 |
- t/readdir.t renamed to read_dir.t for consistancy
|
|
Packit |
be8974 |
- write_file return values are docuemented
|
|
Packit |
be8974 |
Thanks to Adam Kennedy <adamk@cpan.org>
|
|
Packit |
be8974 |
- added no_clobber option to write_file and t/no_clobber.t test for it
|
|
Packit |
be8974 |
Thanks to <pagaltzis@gmx.de>
|
|
Packit |
be8974 |
- fixed bug when appending a null string to a file which then
|
|
Packit |
be8974 |
truncates it. seems to be an odd way for linux and OS X to
|
|
Packit |
be8974 |
handle O_APPEND mode on sysopen. they don't seek to the end of
|
|
Packit |
be8974 |
the file so it gets truncated. fixed by adding a seek to the
|
|
Packit |
be8974 |
end if in append mode.n
|
|
Packit |
be8974 |
Thanks to Chris Dolan <cdolan@cpan.org>
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.08 Sat Apr 16 01:01:27 EDT 2005
|
|
Packit |
be8974 |
- read_dir returns an array ref in scalar context
|
|
Packit |
be8974 |
- read_dir keeps . and .. if keep_dot_dot option is set.
|
|
Packit |
be8974 |
Thanks to John Alden <john.alden@bbc.co.uk>
|
|
Packit |
be8974 |
- slurp() is an optional exported alias to read_file
|
|
Packit |
be8974 |
Thanks to Damian Conway <damian@conway.org>
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.07 Tue Jan 25 01:33:11 EST 2005
|
|
Packit |
be8974 |
- Slurping in pseudo files (as in /proc) which show a size of 0
|
|
Packit |
be8974 |
but actually have data works. This seems to be the case on
|
|
Packit |
be8974 |
linux but on Solaris those files show their proper size.
|
|
Packit |
be8974 |
Thanks to Juerd Waalboer <juerd@cpan.org>
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.06 Mon Sep 20 01:57:00 EDT 2004
|
|
Packit |
be8974 |
- Slurping the DATA handle now works without the workaround.
|
|
Packit |
be8974 |
tests are in t/data_scalar.t and t/data_list.t
|
|
Packit |
be8974 |
- Paragraph mode in read_file is supported. As with <> when $/
|
|
Packit |
be8974 |
(input record separator) is set to '', then the input file is
|
|
Packit |
be8974 |
split on multiple newlines (/\n\n+/).
|
|
Packit |
be8974 |
Thanks to Geoffrey Leach <geoff@direcway.com>
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.05 Tue Feb 24 21:14:55 EST 2004
|
|
Packit |
be8974 |
- skip handle tests where socketpair is not supported (pre 5.8
|
|
Packit |
be8974 |
on windows)
|
|
Packit |
be8974 |
Thanks to Mike Arms <marms@sandia.gov>
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.04 Mon Feb 23 14:20:52 EST 2004
|
|
Packit |
be8974 |
- fixed DATA handle bug in t/handle.t (not seen on most OS's)
|
|
Packit |
be8974 |
Thanks to James Willmore <jwillmore@adelphia.net>
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.03 Mon Dec 22 01:44:43 EST 2003
|
|
Packit |
be8974 |
- fixed DATA handle bugs in t/handle.t on osx (should be fixed
|
|
Packit |
be8974 |
on BSD as well)
|
|
Packit |
be8974 |
- added more comments to code
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.02 Wed Dec 17 03:40:49 EST 2003
|
|
Packit |
be8974 |
- skip DATA test in handle.t on OSX (bug in perl with sysread on DATA)
|
|
Packit |
be8974 |
- changed checking if file handle from fileno to ref
|
|
Packit |
be8974 |
from Randal Schwartz <merlyn@stonehenge.com>
|
|
Packit |
be8974 |
- added support for atomic spewing
|
|
Packit |
be8974 |
- added new test stdin.t for the fileno/ref change
|
|
Packit |
be8974 |
- added new test inode.t to test atomic spewing
|
|
Packit |
be8974 |
|
|
Packit |
be8974 |
9999.01 Mon Sep 1 00:20:56 2003
|
|
Packit |
be8974 |
- original version; created by h2xs 1.21 with options
|
|
Packit |
be8974 |
-AX -n File::FastSlurp
|
|
Packit |
be8974 |
|