On 2005-09-20 14:23, "Yuval Kogman" <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 20, 2005 at 18:19:42 +0000, [EMAIL PROTECTED] wrote:
>>
>> 2: if the middle part does something that changes the value of the
>> expression $condition then the new construct again has a different meaning.
>
> Err, that's the point
Not necessarily. Consider this common idiom (in pseudo-perl5):
foreach my $item (@menu)
{
print "<li>\n";
if ($item is not the current page)
{
print qq|<a href="${\($item->url)}">;
}
print $item->label;
if ($item is not the current page)
{
print "</a>";
}
print "</li>\n";
}
The middle unconditional part doesn't change anything; it's just that -
unconditional. We want to do it every time regardless, but it's bracketed
by bits that always go together - we want to do either both or neither, but
never just one.