in reply to Re: Re: Evil bug: map + anony hash
in thread Evil bug: map + anony hash

Oh. That's not a bug - $_ is a global so if you stomp on it then you have to deal with it. The thing is - since $_ is a global just local()ize it and it'll lose your stomping.

Replies are listed 'Best First'.
Re: Re: Re: Re: Evil bug: map + anony hash
by BUU (Prior) on Sep 24, 2002 at 21:31 UTC
    Well, i would just expect map{} to have its own localized $_, and restore the value of it after a call out. Or something. I'm guess i'm just so used to DWIM'ery that it caught me off guard.