made binmode args for read_file and write_file be passed to binmode on
[urisagit/Perl-Docs.git] / Changes
CommitLineData
8ed110f9 1Revision history File::Slurp
2
39999.14
4 - Added special faster code to slurp in small text files which
5 is a common case
6 - Rewrote the extras/slurp_bench.pl script. It has a full
7 legend, better CLI options, size is selectable, benchmark
8 entries have more consistant names and it compares the new
9 fast slurp for small files to the general slurp code.
10 Thanks to Mark Friendlich
11 - Added t/error.t to actually test error conditions. Previous
12 error.t was renamed to error_mode.t which better reflects its
13 tests.
14 - t/error.t uses a new test driver module. this may get used by
15 other tests in the future.
16 - Fixed check for SEEK_SET and other constant subs being defined
635c7876 17
189999.13 Tue Oct 10 02:04:51 EDT 2006
19 - Refactored the extras/slurp_bench.pl script. It has options,
20 a key the benchmarks, help and more benchmarks.
21 - Reordered changes so recent entries are first
99709852 22 - Added error check on atomic rename and test for it
23 Thanks to Daniel Scott Sterling
24
635c7876 259999.12 Thu Feb 2 02:26:31 EST 2006
26 - Fixed bug on windows with classic slurping and File::Slurp not
27 agreeing on newline conversion.
28 - Added t/newline.t test to check for that fix.
29 - When passing text data by scalar reference to write_file under
30 windows, the buffer is copied so the newline conversion won't
31 modify the caller's data.
32 - Thanks to Johan Lodin <lodin@cpan.org> for a test script which
33 I modified into t/newline.t
34
359999.11 Fri Jan 20 01:24:00 EDT 2005
36 - Quick release to remove code that forced the faked SEEK_*
37 values to be used. Showed up when tested on OSX which doesn't
38 need that backport.
39
409999.10 Thu Jan 19 11:38:00 EDT 2005
41 - t/*.t modules don't use Fcntl.pm
42 - using POSIX qw( :fcntl_h ) instead of Fcntl qw( :seek ) for
43 backwards compatiblity to 5.00503
44 - added conditional definitions of SEEK_* and O_* subs as they are not
45 defined in perl 5.004
46 - File::Slurp now runs on perl 5.004 and newer (see BUGS section)
47 All of the above thanks to Smylers <Smylers@stripey.com>,
48 Piers Kent <piers.kent@bbc.co.uk> and
49 John Alden <john.alden@bbc.co.uk>
50 - Added pod.t and pod_coverage.t tests. This is to pass all
51 the CPANTS tests.
52
539999.09 Tue Apr 19 01:21:55 EDT 2005
54 - t/original.t and read_dir.t no longer search for tempdirs. they just
55 use the current dir which should be in the build directory
56 - t/readdir.t renamed to read_dir.t for consistancy
57 - write_file return values are docuemented
58 Thanks to Adam Kennedy <adamk@cpan.org>
59 - added no_clobber option to write_file and t/no_clobber.t test for it
60 Thanks to <pagaltzis@gmx.de>
61 - fixed bug when appending a null string to a file which then
62 truncates it. seems to be an odd way for linux and OS X to
63 handle O_APPEND mode on sysopen. they don't seek to the end of
64 the file so it gets truncated. fixed by adding a seek to the
65 end if in append mode.n
66 Thanks to Chris Dolan <cdolan@cpan.org>
67
635c7876 689999.08 Sat Apr 16 01:01:27 EDT 2005
69 - read_dir returns an array ref in scalar context
70 - read_dir keeps . and .. if keep_dot_dot option is set.
71 Thanks to John Alden <john.alden@bbc.co.uk>
72 - slurp() is an optional exported alias to read_file
73 Thanks to Damian Conway <damian@conway.org>
74
635c7876 759999.07 Tue Jan 25 01:33:11 EST 2005
76 - Slurping in pseudo files (as in /proc) which show a size of 0
77 but actually have data works. This seems to be the case on
78 linux but on Solaris those files show their proper size.
79 Thanks to Juerd Waalboer <juerd@cpan.org>
80
635c7876 819999.06 Mon Sep 20 01:57:00 EDT 2004
82 - Slurping the DATA handle now works without the workaround.
83 tests are in t/data_scalar.t and t/data_list.t
84 - Paragraph mode in read_file is supported. As with <> when $/
85 (input record separator) is set to '', then the input file is
86 split on multiple newlines (/\n\n+/).
87 Thanks to Geoffrey Leach <geoff@direcway.com>
88
635c7876 899999.05 Tue Feb 24 21:14:55 EST 2004
90 - skip handle tests where socketpair is not supported (pre 5.8
91 on windows)
92 Thanks to Mike Arms <marms@sandia.gov>
93
635c7876 949999.04 Mon Feb 23 14:20:52 EST 2004
95 - fixed DATA handle bug in t/handle.t (not seen on most OS's)
96 Thanks to James Willmore <jwillmore@adelphia.net>
97
635c7876 989999.03 Mon Dec 22 01:44:43 EST 2003
99 - fixed DATA handle bugs in t/handle.t on osx (should be fixed
100 on BSD as well)
101 - added more comments to code
102
1039999.02 Wed Dec 17 03:40:49 EST 2003
104 - skip DATA test in handle.t on OSX (bug in perl with sysread on DATA)
105 - changed checking if file handle from fileno to ref
106 from Randal Schwartz <merlyn@stonehenge.com>
107 - added support for atomic spewing
108 - added new test stdin.t for the fileno/ref change
109 - added new test inode.t to test atomic spewing
110
1119999.01 Mon Sep 1 00:20:56 2003
112 - original version; created by h2xs 1.21 with options
113 -AX -n File::FastSlurp
114