Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: Algorithm To Select Lines Based On Attributes

by xdg (Monsignor)
on Jan 15, 2009 at 18:36 UTC ( #736640=note: print w/replies, xml ) Need Help??

in reply to Re^2: Algorithm To Select Lines Based On Attributes
in thread Algorithm To Select Lines Based On Attributes

I need to know how some information at the bottom of the file before I decide which rule set to use

Maybe you can use File::ReadBackwards to find the information you need, then jump back to the start of the file and read forwards. If memory isn't an issue, then it may not matter, but anytime I see a file that large being slurped for a linear scan, I wonder if it could be done line by line instead.


Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

  • Comment on Re^3: Algorithm To Select Lines Based On Attributes

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://736640]
[Discipulus]: marioroy did you know zentara is back to themonastery? he was used to be one of the best parallel programming monks
[makita]: sign_types parameter in XML::Compile::WSS ::Signature Does have anybody experience how to use it?
[makita]: Need to sign more elements but all types I put in array are ignored. And is always signed only the body

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-03-23 08:41 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.