in reply to why not listed foreach and if?
Let's have a picnic tomorrow, unless it rains.
Lets have a picnic every day next week.
which correspond in perl to:
But in English, such suffix modifiers don't stack well:have_picnic($tomorrow) unless $it_rains; have_picnic($_) for @days;
Lets have a picnic every day next week unless it rains.
If it rains on the first day, do we cancel just that day or the whole week?
So Larry, for linguistic reasons, limited perl to a single statement modifier.
Dave.
|
|---|