in reply to What's wrong with this local() ?

Erm, because when you localize a variable it sets its value to undef? The docs for local used to say this, but they don't mention it specifically any more. Probably because they presume anyone using it has read the other referenced docs.

The cake is a lie.
The cake is a lie.
The cake is a lie.