[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

In article
<CAFyW6MR=_n745BDSs=pebrz+l2-uog65ey_ueqxfiygetye...@mail.gmail.com>,
Peter Martini <petercmart...@gmail.com> wrote:

> A while ago on the perl5-porters list, someone mentioned the desire
> for readline/chomp to handle \R (\r, \n, \r\n, etc) instead of a
> simple fixed separator.  That seems like a fantastic idea to me, and
> one that can be implemented as a CPAN module.  I'd like to write this
> and upload it (if it doesn't exist already ... ), but I'm not sure of
> an appropriate namespace.  Is Unicode::Newline reasonable?  Is this
> too specific a problem to solve with a CPAN module?

I don't think it's too specific. I think Unicode::LineEnding might be
better.

The readline parts have been a Perl wishlist item seemingly forever.
People want to put a regex in $/. Whatever you come up with probably
will have applications beyound just Unicode newlines since you can give
the code any set of line endings.

The chomp would be nice for people using pre-5.10, although s/\R\z//
isn't too hard to type. ;)

-- 
brian d foy (one of many PAUSE admins), http://pause.perl.org
PAUSE instructions:  http://pause.perl.org/pause/query?ACTION=pause_04about
Archives: http://www.xray.mpe.mpg.de/mailing-lists/modules
Please send all messages back to modules@perl.org with no CC to me.

Reply via email to