On Fri, Feb 04, 2005 at 11:08:52AM +0000, Andy Armstrong said:
> It's probably completely antithetical to the spirit of the project but
> you could implement the line end guessing heuristic in a file reading
> XS module - it's dead easy to have a state machine that gets its act
> together on the first line end it encounters and then expects the same
> sequence for every subsequent line ending and it adds nothing like the
> overhead it would in Perl. But, as I say, I imagine putting a lump of C
> in there doesn't fit well with the project ethos :)
After brief discussion with richardc we've both drawn a blank other
thant that it was decided to be a Bad Idea [tm]. This is most likely
because of
a) non-seekable file handlers
b) it was very easy to get wrong
I suppose I *could* put it back in but only guess if you set eol =>
'guess' but TBH I'm not really comfortable doing that. I'm currently in
all kinds of hell due to excessive magic being infused in modules and
I'm attempting not to contribute to that.
Another thing might be to put the code as docs in the POD and let other
being deal with it if they want to.
Simon