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