> Does "goto odds" mean start evaluating all cases after the
> "odds:" label? Meaning that the below is equivalent to the above?
> I think this is what the original poster was asking; if not, I'd
> like to ask it!
That's exactly what it means.
>
> switch ($val) {
> case 3 { print "three"; goto morecases }
> case 4 { print "three"; goto morecases }
>
> morecases:
> case __%2!=0 { print "that's odd" }
> case __%2==0 { print "that's even" }
> }
Damian
- Re: RFC 22 (v1) Builtin switch s... Jarkko Hietaniemi
- Re: RFC 22 (v1) Builtin swit... Chaim Frenkel
- Re: RFC 22 (v1) Builtin switch s... Chaim Frenkel
- Re: RFC 22 (v1) Builtin switch statement Damian Conway
- ConwayPerl (was Re: RFC 22 (v1) Builtin switc... Jeremy Howard
- Re: RFC 22 (v1) Builtin switch statement Bart Lateur
- RE: RFC 22 (v1) Builtin switch statement Lipscomb, Al
- RE: RFC 22 (v1) Builtin switch statement Damian Conway
- Re: RFC 22 (v1) Builtin switch statement Jonathan Scott Duff
- Re: RFC 22 (v1) Builtin switch statement Glenn Linderman
- RE: RFC 22 (v1) Builtin switch statement Damian Conway
- RE: RFC 22 (v1) Builtin switch statement Lipscomb, Al
