thanks Guy
and of course you're right  if they irritate my sense of code style, I
can just wrap them up.
Just thought I'd ask in case I missed something.
John

Guy Morton wrote:
> I don't think so...I've never seen one, but what's hard about using
> String.replace? Aren't the following functionally equivalent?
>
> //perl's chomp
> String.replace(/[\r\n]*$/);
>
> //perl's chop
> String.replace(/.$/);
>
> I guess if you really care, you could extend the String class to add
> them?
>
> Guy
>
>

Reply via email to