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

2008-09-06 Thread Stephen Simmons
# New Ticket Created by Stephen Simmons # Please include the string: [perl #58626] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=58626 In the attached code, there is a fairly simple example of a case statement using

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.

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 unconditional

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