in reply to grep equivalent in perl

How can you expect us to help you with code you didn't show?

The specification: You would like to search a bunch of really big files and print lines that match triggers.

Qualifying the solution: You need speed, and don't want to use system grep.

What you've tried so far: ????????????????

How ???????????? failed: It was too slow.

What you tried instead: system call to grep

How that failed: You don't want to use a system call.

What you need: Help with ???????????????? so that it can be faster.

What we can do for you: Look at ????????????????? and offer suggestions on how ?????????????? might be improved upon so that it's faster.

Where we must start: ?????????????????????

Does this make sense? You are seeking help with a solution that you came up with that was too slow. But instead of showing us that solution, you provided us with an alternative that you don't want to use because it requires a system call. We could come up with a lot of ideas on how to do what you're asking for, but how do we know if our solution is any better than the one you tried but didn't show us? I'm not going to spend time working up a solution only to have you tell me that you already tried that.


Dave