http://qs321.pair.com?node_id=438751


in reply to Re: can this be turned into a compile-time error?
in thread Should chomping a constant always raise an error?

Can modify somehow be declared to only take a modifiable parameter, so that we can have a compile-time error (as happens with the core chomp)?
Playing Devil's Advocate, will this work?
chomp(foo(",",@list))
Don't know? How about this?
chomp(join(",",@list))
It seems, off the top of my naive head, that the argument to chomp would have to be an l-value to be guaranteed to be modifiable.

Is that what you want?

-QM
--
Quantum Mechanics: The dreams stuff is made of