| 1 |
Shell version 0.73 |
| 2 |
================== |
| 3 |
|
| 4 |
NAME |
| 5 |
|
| 6 |
Shell - run shell commands transparently within perl |
| 7 |
|
| 8 |
SYNOPSIS |
| 9 |
|
| 10 |
use Shell qw(cat ps cp); |
| 11 |
$passwd = cat('</etc/passwd'); |
| 12 |
@pslines = ps('-ww'), |
| 13 |
cp("/etc/passwd", "/tmp/passwd"); |
| 14 |
|
| 15 |
# object oriented |
| 16 |
my $sh = Shell->new; |
| 17 |
print $sh->ls('-l'); |
| 18 |
|
| 19 |
DESCRIPTION |
| 20 |
|
| 21 |
This package is a show case, illustrating how to provide a |
| 22 |
simple interface for obtaining the standard output of |
| 23 |
arbitrary commands. It shouldn't be used for production programs. |
| 24 |
|
| 25 |
This was originally written by Larry Wall back in 1994. |
| 26 |
Later contributions came from [email protected], Dave Cottle, |
| 27 |
Casey West and Wolfgang Laun. |
| 28 |
|
| 29 |
Extracted from core distribution for publishing on the CPAN |
| 30 |
by Adriano Ferreira <[email protected]>. |
| 31 |
|
| 32 |
INSTALLATION |
| 33 |
|
| 34 |
To install this module type the following: |
| 35 |
|
| 36 |
perl Makefile.PL |
| 37 |
make |
| 38 |
make test |
| 39 |
make install |
| 40 |
|
| 41 |
DEPENDENCIES |
| 42 |
|
| 43 |
Test::More |
| 44 |
|
| 45 |
COPYRIGHT AND LICENCE |
| 46 |
|
| 47 |
Copyright (C) 2005 by Perl 5 Porters |
| 48 |
|
| 49 |
This library is free software; you can redistribute it and/or modify |
| 50 |
it under the same terms as Perl itself. |