Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
This is good advice, and good questions.
No, I'm not sure that it's not a logic issue. It's running on Linux, Perl 5.005_03. And the text editor doesn't have anything to do with it, since when I'd grep the text file for a pattern which is SUPPOSED to be there, it wouldn't show up. And again - the only thing touching these files were perl scripts.

There are, however, a few things going on in the script which could have some consequences... primarily, my former bad habit of open,flock,read,close followed by open,flock,write, close rather than rewinding the file, writing, truncating, and closing.

Further research leads me to realize that the dates contained within the records indicate that nothing past a certain date was appearing, and since new records are simply appended to the file, you might indeed be right that this is a flocking issue.

Notwithstanding my confidence in my ability to use FLOCK, I still think I made some mistakes, and I appreciate Tilly's soft criticism which made me re-think my methods.

I think I'll go look at and fix some code. I humbly thank all of you for your research and insight. :-)

In reply to Kozz Re: Limit to Line Length? by Kozz
in thread Limit to Line Length? by Kozz

Title:
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 How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found