Magically turning people's old scalar contexts into list contexts is a recipe for several kinds of disaster.
About this quote
- What does it mean?
- Automatically converting scalar values to lists can cause many problems.
- In plain terms
- Changing single values to lists often leads to disaster.
- What can you take from it?
- Avoid implicit data-type conversions that can break code.
Where it applies
Putting it to work
Questions to consider
- What safeguards can prevent such conversion errors?
Another view
The statement is broad and lacks concrete examples.
More from Larry Wall
P.S. I suppose I really should be nicer to people today, considering I'll be singing in Billy Graham's choir tonight... :-)
Permalink to quote #124 And we can always supply them with a program that makes identical files into links to a single file.
Permalink to quote #126 Oh, wait, that was Randal...nevermind...
Permalink to quote #123
Related quotes
There are probably better ways to do that, but it would make the parser more complex. I do, occasionally, struggle feebly against complexity... :-)
Larry WallLarry Wall quote #23 And in the limiting case where the optimizer is completely broken because it's not implemented yet, we get to work around that too. Optionally...
Larry WallLarry Wall quote #234 Premature optimization is the root of all evil (or at least most of it) in programming.
Donald KnuthDonald Knuth quote #1