in reply to Map function that does not return undefined values

Sounds like a square peg, round hole problem - you want grep instead of map e.g
for my $nnot ( map { $solution[-1] + $_, $solution[-1] - $_ } grep { $availableIntervals[$_] > 0 } (1 .. 11)) {

HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Map function that does not return undefined values
by CombatSquirrel (Hermit) on May 13, 2003 at 14:43 UTC
    Thanks a lot, that really helped. The program is faster now as well (no wonder).