<P>Here's one that'll whack your mind a little out.</P>
<PRE>
#!/usr/bin/perl</PRE>
<PRE>
use Shell;</PRE>
<PRE>
$foo = echo("howdy", "<funny>", "world");
print $foo;</PRE>
<PRE>
$passwd = cat("</etc/passwd");
print $passwd;</PRE>
<PRE>
sub ps;
print ps -ww;</PRE>
<PRE>
cp("/etc/passwd", "/tmp/passwd");</PRE>
<P>That's maybe too gonzo. It actually exports an AUTOLOAD to the current
package (and uncovered a bug in Beta 3, by the way). Maybe the usual
usage should be</P>
<PRE>
use Shell qw(echo cat ps cp);</PRE>
<P>Larry</P>
<P>If you set $Shell::capture_stderr to 1, the module will attempt to
capture the STDERR of the process as well.</P>
<P>The module now should work on Win32.</P>
<PRE>
Jenda</PRE>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>Larry Wall</P>
<P>Changes by <A HREF="mailto:Jenda@Krynicky.cz">Jenda@Krynicky.cz</A> and Dave Cottle <<A HREF="mailto:d.cottle@csc.canterbury.ac.nz">d.cottle@csc.canterbury.ac.nz</A>></P>