Slightly reformatted and ellipsized for easier (YMMV) comprehension, thinkdifferent wrote:

...I can run via command prompt by typing the following command:
rnafold <inputfile> outputfile.
now i want to run the program using perl.... i tried the following command...
#!C:/perl/bin/RNAfold qx/rnafold <inputfile> outputfile/;

You say "command" in both examples, but while the former apppears to be a valid, windows command line input, the latter looks like a borked fragment of a script. If you really mean you tried to type
#!C:/perl/bin/RNAfold qx/rnafold <inputfile> outputfile/; at a W32 command line to run a Windows "executable", the shebang isn't going to magically invoke Perl (in fact, IIRC, it should cause your system to spit an error to the general effect of "'#!C:/' is not a valid program"). What's more, even if that worked, the balance of the line isn't going to utilize qx/.../ without invoking perl.

So, please clarify: is the second example meant to be the code in some script you've created? ...Or is a case of making stuff up and hoping the computer will understand?


In reply to Re: running a executable program using perl ??? by ww
in thread running a executable program using perl ??? by thinkdifferent

Title:
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, details, 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, summary, 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.