[Chicago-talk] Capturing OS command output.
richard at rushlogistics.com
Mon Jun 20 10:53:43 PDT 2005
Pete and JT,
Thanks for the help.
--- Pete Krawczyk <mongers at bsod.net> wrote:
> 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
> Chicago-talk mailing list
> Chicago-talk at pm.org
A people that values its privileges above its principles soon loses both.
-Dwight D. Eisenhower.
More information about the Chicago-talk