File: TODO

package info (click to toggle)
libfile-slurp-perl 9999.19-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 340 kB
  • ctags: 40
  • sloc: perl: 1,671; makefile: 39
file content (33 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (3)
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