Valid point! Well, afaik the \r\n should be handle by the IO layer (replaced by \n) and therefore not something we should consider ourselves when chomping. I think the same is the case in Perl 5
On 07/03/2010, at 17.58, Geoffrey Broadwell via RT wrote: > On Sat, 2010-03-06 at 07:52 -0800, Martin Kjeldsen wrote: >> + if $str ~~ /\x0a$/ { >> + $str = $str.substr(0, $str.chars - 1); > > Unless newlines are being canonicalized elsewhere, this seems > *nix-specific. > > (Sorry I haven't researched further, this just caught my eye in passing; > feel free to ignore if it doesn't make sense.) > > > -'f > > >