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

Reply via email to