| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | # Copyright 2001 Jörgen Hägg | ||
| 4 | # You may distribute under the terms of the GNU General Public License. | ||
| 5 | |||
| 6 | use blib; | ||
| 7 | use Config::Cfe; | ||
| 8 | |||
| 9 | read_file('testdata'); | ||
| 10 | |||
| 11 | goto_top; | ||
| 12 | delete_sect 'x_sect'; | ||
| 13 | append_sect 'x_sect'; | ||
| 14 | append split(/\n/, `fortune -l`); | ||
| 15 | end_sect; | ||
| 16 | |||
| 17 | list_lines; | ||
| 18 | |||
| 19 | my $line = get_sect 'x_sect'; | ||
| 20 | |||
| 21 | print @$line, "\n"; | ||
| 22 | |||
| 23 | write_file; |