[Chicago-talk] Capturing OS command output.

Pete Krawczyk mongers at bsod.net
Mon Jun 20 08:21:20 PDT 2005

Subject: [Chicago-talk] Capturing OS command output.
From: Richard Reina <richard at rushlogistics.com>
Date: Mon, 20 Jun 2005 08:16:52 -0700 (PDT)

}my $convert_path = system("which convert");

One of:

my $convert_path = `which convert`;
my $convert_path = qx/which convert/;

will work better for you.

` and qx are equivalent the same way " and qq are.  "perldoc perlop" and 
look for qx.

-Pete K
Pete Krawczyk
    mongers at bsod dot net

More information about the Chicago-talk mailing list