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