What I need is a script that will: 1. Create input files 2. Run qchem jobs 3. Parse output 4. Plot the data The input files will consider Atom 1 and Atom 2. We will also consider the atomic radii r_min and r_max and need information on delta_r. Concerning the r values, the script should read in arguments, re-print arguments, and print a list of the r's.

I would start by asking questions about my needs and address them one by one. Your input files:

Take each of the questions you have and find a way to do it in Perl. Write yourself a script that does just enough to prove you have the concept down, then move on to the next question/piece. By the time you get done, you will probably have a lot better idea of what scripting in general means and how it is approached in Perl. As you go along, you will probably have questions that you can ask here.

Some of the answers you get will refer to Perl Modules from CPAN which can in some cases make your work less cumbersome by leveraging other peoples work. I would not worry about that to start. Just take your first question and learn about how you might come up with an answer. That is how I learned to write Perl code. Once you get going, the concepts come faster and faster.

Hope that is encouraging, and maybe a bit helpful too.

...the majority is always wrong, and always the last to know about it...

A solution is nothing more than a clearly stated problem...


In reply to Re: Perl and qchem by wjw
in thread Perl and qchem by cjjennings3

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.