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