.16 release notes edit
[urisagit/Perl-Docs.git] / Changes
CommitLineData
8ed110f9 1Revision history File::Slurp
2
99916a19 39999.16 Wed Apr 13 03:47:26 EDT 2011
4 - Added support for read_file options to be a hash reference.
cc72a762 5 - Added support for read_dir options to be a hash reference.
99916a19 6 - Added new feature prepend_file
cc72a762 7 - Fixed bug with array_ref in list context. was introduced by .15/.14
8 Thanks to Norbert Gruener
9 - Cleaned up some pod
99916a19 10
119999.15 Thu Mar 24 16:40:19 EDT 2011
12 - Fixed error.t test so it works when run as root
13 - Removed skip lines from error.t
14 - Fixed pod about binmode option to reflect changes in .14
15
169999.14 Sun Mar 20 16:26:47 EDT 2011
17 - Added LICENCE (same as perl) to POD
8ed110f9 18 - Added special faster code to slurp in small text files which
19 is a common case
20 - Rewrote the extras/slurp_bench.pl script. It has a full
21 legend, better CLI options, size is selectable, benchmark
22 entries have more consistant names and it compares the new
23 fast slurp for small files to the general slurp code.
24 Thanks to Mark Friendlich
99916a19 25 - Cleaned up pod
26 - Added more Synopsis examples
8ed110f9 27 - Added t/error.t to actually test error conditions. Previous
28 error.t was renamed to error_mode.t which better reflects its
29 tests.
30 - t/error.t uses a new test driver module. this may get used by
31 other tests in the future.
32 - Fixed check for SEEK_SET and other constant subs being defined
022c1376 33 - Added support for binmode other than :raw and binmode.t test
99916a19 34 Thanks to Martin J. Evans, Peter Edwards, Bryce Nesbitt
35 - Added support for perms option in write_file and perms.t test
36 Thanks to Peter Corlett and Paul Miller
37 - Added check to the rename call in atomic mode. Tested in error.t.
38 Thanks to Daniel Scott Sterling
39 - Added POD to state that using scalar_ref or buf_ref will be faster
40 and save memory due to not making a copy
41 Thanks to Peter Edwards
42 - read_file in list mode keeps data tainted
43 Thanks to Sébastien Aperghis-Tramoni
44 - read_file checks for an overloaded object to get the file
45 name.
46 Thanks to Sébastien Aperghis-Tramoni
635c7876 47
489999.13 Tue Oct 10 02:04:51 EDT 2006
49 - Refactored the extras/slurp_bench.pl script. It has options,
50 a key the benchmarks, help and more benchmarks.
51 - Reordered changes so recent entries are first
99709852 52 - Added error check on atomic rename and test for it
53 Thanks to Daniel Scott Sterling
54
635c7876 559999.12 Thu Feb 2 02:26:31 EST 2006
56 - Fixed bug on windows with classic slurping and File::Slurp not
57 agreeing on newline conversion.
58 - Added t/newline.t test to check for that fix.
59 - When passing text data by scalar reference to write_file under
60 windows, the buffer is copied so the newline conversion won't
61 modify the caller's data.
62 - Thanks to Johan Lodin <lodin@cpan.org> for a test script which
63 I modified into t/newline.t
64
659999.11 Fri Jan 20 01:24:00 EDT 2005
66 - Quick release to remove code that forced the faked SEEK_*
67 values to be used. Showed up when tested on OSX which doesn't
68 need that backport.
69
709999.10 Thu Jan 19 11:38:00 EDT 2005
71 - t/*.t modules don't use Fcntl.pm
72 - using POSIX qw( :fcntl_h ) instead of Fcntl qw( :seek ) for
73 backwards compatiblity to 5.00503
74 - added conditional definitions of SEEK_* and O_* subs as they are not
75 defined in perl 5.004
76 - File::Slurp now runs on perl 5.004 and newer (see BUGS section)
77 All of the above thanks to Smylers <Smylers@stripey.com>,
78 Piers Kent <piers.kent@bbc.co.uk> and
79 John Alden <john.alden@bbc.co.uk>
80 - Added pod.t and pod_coverage.t tests. This is to pass all
81 the CPANTS tests.
82
839999.09 Tue Apr 19 01:21:55 EDT 2005
84 - t/original.t and read_dir.t no longer search for tempdirs. they just
85 use the current dir which should be in the build directory
86 - t/readdir.t renamed to read_dir.t for consistancy
87 - write_file return values are docuemented
88 Thanks to Adam Kennedy <adamk@cpan.org>
89 - added no_clobber option to write_file and t/no_clobber.t test for it
90 Thanks to <pagaltzis@gmx.de>
91 - fixed bug when appending a null string to a file which then
92 truncates it. seems to be an odd way for linux and OS X to
93 handle O_APPEND mode on sysopen. they don't seek to the end of
94 the file so it gets truncated. fixed by adding a seek to the
95 end if in append mode.n
96 Thanks to Chris Dolan <cdolan@cpan.org>
97
635c7876 989999.08 Sat Apr 16 01:01:27 EDT 2005
99 - read_dir returns an array ref in scalar context
100 - read_dir keeps . and .. if keep_dot_dot option is set.
101 Thanks to John Alden <john.alden@bbc.co.uk>
102 - slurp() is an optional exported alias to read_file
103 Thanks to Damian Conway <damian@conway.org>
104
635c7876 1059999.07 Tue Jan 25 01:33:11 EST 2005
106 - Slurping in pseudo files (as in /proc) which show a size of 0
107 but actually have data works. This seems to be the case on
108 linux but on Solaris those files show their proper size.
109 Thanks to Juerd Waalboer <juerd@cpan.org>
110
635c7876 1119999.06 Mon Sep 20 01:57:00 EDT 2004
112 - Slurping the DATA handle now works without the workaround.
113 tests are in t/data_scalar.t and t/data_list.t
114 - Paragraph mode in read_file is supported. As with <> when $/
115 (input record separator) is set to '', then the input file is
116 split on multiple newlines (/\n\n+/).
117 Thanks to Geoffrey Leach <geoff@direcway.com>
118
635c7876 1199999.05 Tue Feb 24 21:14:55 EST 2004
120 - skip handle tests where socketpair is not supported (pre 5.8
121 on windows)
122 Thanks to Mike Arms <marms@sandia.gov>
123
635c7876 1249999.04 Mon Feb 23 14:20:52 EST 2004
125 - fixed DATA handle bug in t/handle.t (not seen on most OS's)
126 Thanks to James Willmore <jwillmore@adelphia.net>
127
635c7876 1289999.03 Mon Dec 22 01:44:43 EST 2003
129 - fixed DATA handle bugs in t/handle.t on osx (should be fixed
130 on BSD as well)
131 - added more comments to code
132
1339999.02 Wed Dec 17 03:40:49 EST 2003
134 - skip DATA test in handle.t on OSX (bug in perl with sysread on DATA)
135 - changed checking if file handle from fileno to ref
136 from Randal Schwartz <merlyn@stonehenge.com>
137 - added support for atomic spewing
138 - added new test stdin.t for the fileno/ref change
139 - added new test inode.t to test atomic spewing
140
1419999.01 Mon Sep 1 00:20:56 2003
142 - original version; created by h2xs 1.21 with options
143 -AX -n File::FastSlurp
144