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