File: README

package info (click to toggle)
libterm-shell-perl 0.02-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 124 kB
  • ctags: 106
  • sloc: perl: 1,006; makefile: 3
file content (68 lines) | stat: -rw-r--r-- 1,890 bytes parent folder | download | duplicates (5)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
INTRODUCTION

Term::Shell -- Write command-line shells in Perl.

Term::Shell makes it joyfully easy to write command-line interfaces in Perl.
All the boring details like command-line parsing and terminal handling are
done for you.

Example:

   package MyShell;
   use base qw(Term::Shell);

   # This behaves like the system echo command, minus shell expansion
   sub run_echo {
       my $o = shift;
       print "@_\n" if @_;	# print the arguments
   }

   package main;
   MyShell->new->cmdloop;

Here is a sample session from this program:

   shell> help
   Type 'help command' for more detailed help on a command.
     Commands:
       echo - undocumented - no help available
       exit - exits the program
       help - prints this screen, or help on 'command'
   shell> echo
   shell> echo 1 2 3
   1 2 3
   shell> echo $VAR
   $VAR
   shell> exit

------------------------------------------------------------------------------
INSTALLATION:

This module requires Term::ReadLine to be installed. This module has been a
core module since at least 5.005_03, so it shouldn't be a problem.

This module requires Text::Autoformat for some features. Text::Autoformat can
be found on your nearest CPAN mirror, probably the same place you got
Term::Shell.

To install Term::Shell do this:

perl Makefile.PL
make
make test
make install

(On ActivePerl for MSWin32, use nmake instead of make.)

You have to 'make install' before you can run it successfully.

------------------------------------------------------------------------------
INFORMATION:

- For more information on Term::Shell see 'perldoc Term::Shell'.
- For more information on Term::ReadLine see 'perldoc Term::ReadLine'.
- For more information on Text::Autoformat see 'perldoc Text::Autoformat'.

Please send questions and comments to "Neil Watkiss" <NEILW@cpan.org>

Copyright (c) 2002, Neil Watkiss. All Rights Reserved.