Re: [perl #58626] default and when * execute even when another when clause is used

2008-09-06 Thread Stephen Simmons
On Sep 6, 2008, at 10:51 AM, Larry Wall wrote: On Sat, Sep 06, 2008 at 11:38:42AM -0500, John M. Dlugosz wrote: The when statements are just like if statements. After executing one, it goes on to the following statement which does not have to be a conditional statement. That is, you can mix

Re: [perl #58626] default and when * execute even when another when clause is used

2008-09-06 Thread Larry Wall
On Sat, Sep 06, 2008 at 11:38:42AM -0500, John M. Dlugosz wrote: > The when statements are just like if statements. After executing one, > it goes on to the following statement which does not have to be a > conditional statement. That is, you can mix when statements with plain > uncondition

Re: [perl #58626] default and when * execute even when another when clause is used

2008-09-06 Thread John M. Dlugosz
The when statements are just like if statements. After executing one, it goes on to the following statement which does not have to be a conditional statement. That is, you can mix when statements with plain unconditional statements. If multiple when conditions match, it runs all of them. It