Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: parsing text files continued

by pileofrogs (Priest)
on Jul 18, 2008 at 18:00 UTC ( [id://698691]=note: print w/replies, xml ) Need Help??


in reply to parsing text files continued

Err.. what was your problem exactly? I'm too lazy to try your code on your data to see where it doesn't work. I assume others are too. (except olus of course...)

Also, is it 15 lines per record, or 15 files of lines per record? You say "15 of them" and I am easily confused.

If you want what I think you want, I'd just say go through the file, stick lines into a buffer, when you hit a date, whack the buffer into the format you want and put the new date into the buffer and continue...

--Pileofrogs

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2026-05-11 02:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.