in reply to Re: Re: Can't localize lexical variable $var at...
in thread Can't localize lexical variable $var at...
That's one of the things that slipped in under the radar. There's no real difference between elements of a lexical and global array or hash, so you can localize either with no penalty. It's a quirk of the implementation--whether it's a bug or not is arguable. (local's already got a number of problems, mainly when localizing anything with magic)