http://www.perlmonks.org?node_id=1004937


in reply to Shell script with PERL

Look for "backticks" in perlop.