
The shell module is a show case, illustrating a few perl features. it shouldn't be used for production programs. although it does provide a simple interface for obtaining the standard output of arbitrary commands, there may be better ways of achieving what you need.