in reply to what would you like to see in perl5.12?
Aside from that, I'd like to see support for matching regexes across boundaries for partially loaded buffers. That would ease processing files in blocks of a few k each, instead of having to load the entire file into a string.
As an example: say you're looking for a word "SELECT" and the buffer contains:
It's possible that it would have matched "SELECT" if the buffer wasn't cut off.my $sth = $dbh->prepare('SEL
I'd like regexes to be able to catch that. Automatically.
I don't really care how it's done, but I personally favor a system that takes some action (die, set a variable, call a callback sub) when the lookahead "touches" the back end of the buffer. (I call that the "electric fence" approach: touch it and you're dead.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: what would you like to see in perl5.12?
by sgt (Deacon) on Aug 22, 2007 at 20:56 UTC |