So recently I have been hired to write a program, but this time it was in Perl and I am completely unfamiliar with the script and am having trouble getting going on it. My employer provided me with the Perl books, I worked my way through the short one but once I hit the huge one I decided to see if I could pick out just what I needed to know, well the things I needed to know where at the end of the book and it seemed like you needed to know everything prior to that. Well enough chit-chat, here is the gist of what I have to do: experiments are carried out step by step and at each step about 10 different values are returned to the computer. Every step is listed one after the other in a text file. So what I'm supposed to do is open this text file, find each step, grab the values of temperature and time increment only and put the three into a list on a new text doc. So not knowing a lot of perl I'm kind of lost right now as to how to attack it. I am unfamiliar with the way in which perl opens a text file and how I can search it to pull out the necessary values. For additional reference the text file I need to open is called 'hout.txt' and I am working on windows just writing scripts in notepad. Thanks in advance.

In reply to Trouble Getting Started by Sultan

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.