Keep It Simple, Stupid | |
PerlMonks |
Re: A fast way to do this?by davido (Cardinal) |
on Jul 13, 2014 at 23:52 UTC ( [id://1093480]=note: print w/replies, xml ) | Need Help?? |
How big are the files? How often are you processing such files? How many of them are there? How tight is the time constraint on arriving at a result? How often do they change? In short, what problem are we really solving? There is no silver bullet when it comes to ascertaining where a given character or pattern is found within a file; one must look at the file's contents to find out. But if we knew more about the problem we're trying to solve, we might be able to come up with sensible and efficient solutions. Dave
In Section
Seekers of Perl Wisdom
|
|