On Sat, Sep 16, 2000 at 03:28:26AM -0000, Perl6 RFC Librarian wrote:
> =head1 TITLE
> 
> Retire chop().
> 
> =head1 VERSION
> 
>   Maintainer: Nathan Torkington <[EMAIL PROTECTED]>
>   Date: 5 Sep 2000
>   Last Modified: 15 Sep 2000
>   Mailing List: [EMAIL PROTECTED]
>   Number: 195
>   Version: 2
>   Status: Frozen

As I mailed to Nathan Torkington several days ago (without getting 
a reply), many people use chop() a lot and his perl526 substitute
"s/.\z//s;" will not work because it returns the number of
chars changed, not the char itself like chop() does (as opposed to
chomp()).

> =head1 IMPLEMENTATION
> 
> The perl526 translator can simply use
> 
>   s/.\z//s;
> 
> for a chop() action.  If there were a chop() in a standard library
> then the conversion would simply be a matter of putting:

-Sven
-- 
Algol-60 surely must be regarded as the most important programming language
yet developed.
                -- T. Cheatham

Reply via email to