Thus it was written in the epistle of Tom Christiansen, > >How often does the return value from chomp or chop get used? The confusion > >would cleared up considerably, I think, if they didn't return a value. > > Seldom, I think--albeit sufficiently often that you might want the > perl526 translator to have any such found be converted to some kind > of lchop/lchomp simply for compatibility. > > Come to think of it, non-lvaluing chomp doesn't solve the most common usage > snafuddle: > > while (chomp(<ARGV>) { } If we've decided that chomp isn't going to return the clippings, would it not seem prudent to make while (chomp(<ARGV>)) work like while (<ARGV>) (with the expected difference, of course). After all, "while (<ARGV>)" is special-cased already. Ted -- Ted Ashton ([EMAIL PROTECTED]), Info Sys, Southern Adventist University ========================================================== Each problem that I solved became a rule which served afterwards to solve other problems. -- Descartes, Rene (1596-1650) ========================================================== Deep thoughts to be found at http://www.southern.edu/~ashted
- Re: RFC: Filehandle type-defining punctuation Graham Barr
- Re: RFC: Filehandle type-defining punctuation Nathan Wiger
- Re: RFC: Filehandle type-defining punctuation Tom Christiansen
- Re: RFC: Filehandle type-defining punctuation Nathan Wiger
- Re: RFC: Filehandle type-defining punctuation Glenn Linderman
- Re: RFC: Filehandle type-defining punctuation Tom Christiansen
- Re: RFC: Filehandle type-defining punctuation Nathan Wiger
- Re: RFC: Filehandle type-defining punctuation Ted Ashton
- Re: RFC: Filehandle type-defining punctuation Johan Vromans
- Re: RFC: Filehandle type-defining punctuation Tom Christiansen
- Re: RFC: Filehandle type-defining punctuation Ted Ashton
- Re: RFC: Filehandle type-defining punctuation Bart Lateur
- Re: RFC: Filehandle type-defining punctuation Ted Ashton
- Re: RFC: Filehandle type-defining punctuation Nathan Torkington
- Re: RFC: Filehandle type-defining punctuation Peter Scott
- Re: RFC: Filehandle type-defining punctuation Nathan Wiger
- Re: RFC: Filehandle type-defining punctuation Nick Ing-Simmons
- Re: RFC: Filehandle type-defining punctuation Jonathan Scott Duff
- Re: RFC: Filehandle type-defining punctuation Piers Cawley
- Re: RFC: Filehandle type-defining punctuation Simon Cozens
- Re: RFC: Filehandle type-defining punctuation Tom Christiansen