in reply to Re^2: why not listed foreach and if?
in thread why not listed foreach and if?
foreach takes a list as its argument, and I guess perl just doesn't see (@a if $a) as being a valid list.foreach @a if $a as foreach(@a if $a)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: why not listed foreach and if?
by hv (Prior) on Jun 18, 2024 at 00:30 UTC | |
by ikegami (Patriarch) on Jun 18, 2024 at 13:37 UTC | |
|
Re^4: why not listed foreach and if?
by rsFalse (Chaplain) on Feb 01, 2025 at 12:13 UTC |