Don't ask to ask, just ask | |
PerlMonks |
Re^2: can this be turned into a compile-time error?by QM (Parson) |
on Mar 11, 2005 at 18:54 UTC ( [id://438751]=note: print w/replies, xml ) | Need Help?? |
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? Don't know? How about this? 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
In Section
Seekers of Perl Wisdom
|
|