On Tue, 8 Aug 2000, Michael Mathews wrote:

> Ted Ashton said:
> > Thus it was written in the epistle of Uri Guttman,
> > >
> > > how do you tell the above two apart? by array do you mean only an array
> > > variable? then you can't chomp a list of scalar values or multiple
> > > arrays, etc.
> > >
> > > this needs to be clarified.
> >
> > Quite true.  The two-argument one is new to me and I hadn't thought much
> > about it.  Do you have a suggestion?
> 
> Like "join" the order of arguments would have to be "chomp($thing_to_remove,
> @array)" but this spoils the default behavior of $thing_to_remove being
> optional...
> 
> unless you think we should require arrays to be passed by reference.

It's an op. Arrays can be passed in any way we want. (Though I will
personally drive out and smack the first person that suggests chomp should
be lazy...)

                                        Dan

Reply via email to