| 1 | #!/usr/bin/perl | ||
| 2 | # | ||
| 3 | # Trivial example to demonstrate use of the Text::LineEditor module. | ||
| 4 | # | ||
| 5 | # ObLegalStuff: | ||
| 6 | # Copyright (c) 1998 Bek Oberin. All rights reserved. This program is | ||
| 7 | # free software; you can redistribute it and/or modify it under the | ||
| 8 | # same terms as Perl itself. | ||
| 9 | # | ||
| 10 | # Last updated by gossamer on Tue Aug 25 18:53:28 EST 1998 | ||
| 11 | # | ||
| 12 | |||
| 13 | |||
| 14 | use Text::LineEditor; | ||
| 15 | |||
| 16 | my $text = line_editor(); | ||
| 17 | |||
| 18 | print "You entered:\n---\n"; | ||
| 19 | print $text; | ||
| 20 | print "---\n"; | ||
| 21 | |||
| 22 |