in reply to Optimization, side-effects and wrong code
and avoid the keys %$self thing altogether. In my 5 minutes of playing with it, it appears to workwhile(my $k = each %$self || each %$self){ return $k if(exists $self->{$k}->{blahblah}); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Optimization, side-effects and wrong code
by benizi (Hermit) on Oct 01, 2004 at 18:59 UTC | |
by bpphillips (Friar) on Oct 01, 2004 at 19:54 UTC |