in reply to Tidying up some dereferencing code
Better use foreach instead of for, when you iterate over an array.foreach (@{$self->{_words}}) { foreach my $curr (@{$_->pass_matches}) { # ... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) 2Re: Tidying up some dereferencing code
by jeffa (Bishop) on Aug 13, 2002 at 16:32 UTC |