Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
The sample is the input (the file that I want to read and cut into little pieces to output what the user wants to see.) The user inputs the tool name (Tool01,) and the date that they want to go back to (which is taken care of earlier in the script.) What the script does is gets rid of everything before the inputed date and keeps everything after. Then it is supposed to find every instance of the specified tool (Tool01) and print out any coments that have been written for that tool, stopping when it gets to the next tool, going to the next instance of that tool, printing untill it reaches the next tool.......The way it is set up the output to the reader should read:

Tool01 - ran good
Tool01 - Broke spindle temp transducer
waitin on replacement

once it is at that point, it is useable. Eventually I want to optomise the output to read:

Apr 23 0630 - ran good
Apr 24 2330 - Broke spindle temp transducer
waiting on replacement

I hope this clears up any confusion as to what I am asking, and what I am trying to do.


In reply to Re: Re: Reading entire file. by stuffy
in thread Reading entire file. by stuffy

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2021-12-08 22:26 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (36 votes). Check out past polls.