Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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.

I need to run something like this:

 $package_category = (./support/find_cat $package_name $package_description)

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.

the format I am trying to match is:

$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.

And it will run as part of a loop with different input_variable entries each time, hopefully giving the correct output variable back.

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.

Thanks in advance and anticipation of an easy fix.

In reply to [solved] how do I run an external command by scsijon

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (3)
    As of 2018-01-24 04:51 GMT
    Find Nodes?
      Voting Booth?
      How did you see in the new year?

      Results (255 votes). Check out past polls.