<?xml version="1.0" encoding="windows-1252"?>
<node id="1019532" title="[solved] how do I run an external command" created="2013-02-19 06:55:11" updated="2013-02-19 06:55:11">
<type id="115">
perlquestion</type>
<author id="1019522">
scsijon</author>
<data>
<field name="doctext">
&lt;p&gt;I am VERY new to perl ( a few days only) although I can work through most programs across languages nowadays given time and decent referance url's.&lt;/p&gt;

&lt;p&gt;I need to run something like this:&lt;/p&gt;

&lt;code&gt; $package_category = (./support/find_cat $package_name $package_description)&lt;/code&gt;

&lt;p&gt; I can run the shell equivalent in a Terminal Console and have it OK, But I can't seem to work out how to do it from withing the perl program.&lt;/p&gt;

&lt;p&gt;the format I am trying to match is:&lt;/p&gt;
&lt;code&gt;	
$output_variable = relative_file_path/external_command_filename_to_run $input_variable1 $input_variable2
$output_variable is what I get back; and
$input_variable1 and 2 are what the perl script feeds in.
&lt;/code&gt;

&lt;p&gt; And it will run as part of a loop with different input_variable entries each time, hopefully giving the correct output variable back.&lt;/p&gt;

&lt;p&gt;I have already had a look through the similar varying messages across some of your pages, but they don't seem to match what I am attempting and I am hoping someone can either help directly with just code or (better) both code and a breakdown on what is what so I can understand it as well as use it.&lt;/p&gt;

&lt;p&gt;Thanks in advance and anticipation of an easy fix.&lt;/p&gt;</field>
</data>
</node>
