Lines Matching defs:Shell
1 package Shell;
25 *{"${callpack}::$sym"} = \&{"Shell::$sym"};
30 shift if ref $_[0] && $_[0]->isa( 'Shell' );
34 $Shell::capture_stderr ||= 0;
37 shift if ref \$_[0] && \$_[0]->isa( 'Shell' );
39 \$Shell::capture_stderr == 1 ? `$cmd 2>&1` :
40 \$Shell::capture_stderr == -1 ? `$cmd 2>$null` :
93 push \@arr, '2>&1' if \$Shell::capture_stderr == 1;
94 push \@arr, '2>$null' if \$Shell::capture_stderr == -1;
121 Shell - run shell commands transparently within perl
139 use Shell;
156 use Shell qw(echo cat ps cp);
161 If you set $Shell::capture_stderr to 1, the module will attempt to
164 If you set $Shell::capture_stderr to -1, the module will discard the
195 Shell now has an OO interface. Good for namespace conservation
198 use Shell;
199 my $sh = Shell->new;