blob: 9af7980bdbf1a5862a8164a190d5faf19139a52e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
File::Slurp TODO
NEW FEATURES
prepend_file() -- prepend text to the front of a file
options: lock file? enable atomic
edit_file() -- slurp into $_, call edit code block, write out $_
options: lock file?
edit_file_lines() -- slurp each line into $_, call edit code block,
write out $_
options: lock file?
read_file_lines()
reads lines to array ref or list
same as $list = read_file( $file, { array_ref => 1 }
or @lines = read_file()
new options for read_dir
prepend -- prepend the dir name to each dir entry.
filter -- grep dir entries with qr// or code ref.
BUGS:
restart sysread/write after a signal (or check i/o count)
FEATURE REQUESTS
|