Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Kozz Re: Limit to Line Length?

by Kozz (Friar)
on Jan 26, 2001 at 22:18 UTC ( #54590=note: print w/ replies, xml ) Need Help??

in reply to Limit to Line Length?

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. :-)

Comment on Kozz Re: Limit to Line Length?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://54590]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2015-11-27 13:25 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (729 votes), past polls