Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: Adaptive parser for tab delimited text file

by reaper9187 (Scribe)
on Nov 01, 2012 at 10:37 UTC ( #1001795=note: print w/replies, xml ) Need Help??

in reply to Re: Adaptive parser for tab delimited text file
in thread Adaptive parser for tab delimited text file

No.. Its different.. The earlier issues was resolved and it works fine now. My current problem is tht i need to read a particular section of text from the entire file and then iteratively perform more checks to determine the size of the block and start and end limters to find out the size of block i need to be working on (this size is variable and it changes as and when the user makes changes).
To make it more understandable, the execution of code follows these steps: 1. identify the keyword "CELL" to determine the start of the particular block
2. match the cell name(next line of CELL,eg LUC123A in this case)
3. Identify the block size (in terms of number of lines ) between the two limiters ,i.e first and second occurence of the word "CELL"

I keep getting confused for some reason. i'd really like some insight .. Sorry for the trouble
  • Comment on Re^2: Adaptive parser for tab delimited text file

Replies are listed 'Best First'.
Re^3: Adaptive parser for tab delimited text file
by BrowserUk (Pope) on Nov 01, 2012 at 10:56 UTC

    Are you searching the file for just this block(s)? Or do you 'encounter' this block as your process the other parts of the file?

    Are the last two lines of your (extremely minimalist) sample indication that another matching Section follows?

    Oooh. The sample data just changed out of all recognition.............Oh well. Ignore my questions, they are no longer meaningful.

    Best of luck.

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001795]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-06-23 22:25 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.