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

BING BING BING!! We have a winner! That was exactly the problem (and solution) i rewrote the methods that were being called to avoid using $_, and it worked like a charm. Hmph, that has to be a bug or something.

Replies are listed 'Best First'.
Re: Re: Re: Evil bug: map + anony hash
by diotalevi (Canon) on Sep 24, 2002 at 21:16 UTC

    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.

      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.