Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: Regexp and reading a file n-lines at time

by epimenidecretese (Acolyte)
on Feb 01, 2010 at 12:47 UTC ( #820727=note: print w/replies, xml ) Need Help??

in reply to Re: Regexp and reading a file n-lines at time
in thread Regexp and reading a file n-lines at time

I'm sorry,I'had maid a big mistake in describing the input data.

I had written Recipe 1. insted of Ingredient 1..

Anyway,I've fixed it and I'm working on your tips.I think I will spend some time understanding your code.Thank you very much.

Replies are listed 'Best First'.
Re^3: Regexp and reading a file n-lines at time
by BioLion (Curate) on Feb 01, 2010 at 13:01 UTC

    I guess the main thing to understand is using the buffer to break the 'recipes' up so they can be processed individually - Super Search should find you other examples of this idiom in use. The buffer will contain the lines individually, but they can so joined up or whatever you like!

    There are also many Parse modules on cpan, but i think probably your situation is specific and simple enough to not get confused with those! Anyway, good luck!

    Just a something something...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2019-11-14 03:50 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (76 votes). Check out past polls.