in reply to Re: I don't understand this grep
in thread I don't understand this grep
The curious thing is that the test in the grep:
contains nothing that depends on whatever $self->channels is or returns. It could equally be written:return grep { $self->level( $level ) } $self->channels;
but that doesn't answer the question of why $self->channels appears to be missing.return $self->level($level) ? $self->channels : () ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: I don't understand this grep
by ikegami (Patriarch) on Nov 05, 2008 at 18:50 UTC | |
by ccn (Vicar) on Nov 05, 2008 at 19:17 UTC | |
by gwhite (Friar) on Nov 05, 2008 at 19:25 UTC | |
|
Re^3: I don't understand this grep
by gwadej (Chaplain) on Nov 05, 2008 at 18:11 UTC | |
by jwkrahn (Abbot) on Nov 05, 2008 at 18:37 UTC | |
by massa (Hermit) on Nov 05, 2008 at 19:00 UTC | |
by gwhite (Friar) on Nov 05, 2008 at 19:21 UTC | |
by gwadej (Chaplain) on Nov 05, 2008 at 19:28 UTC |