in reply to Perl 5.10: switch statement demo
That doesn't look like a particularly apt illustration of given/when anyway, since it completely circumvents given's smart matching. It certainly doesn't look any better than
which, as you pointed out, DWYM in this case, while given/when doesn't.$_ % 3 or push @what, 'fizz'; $_ % 5 or push @what, 'buzz'; $_ % 7 or push @what, 'sausage';
A word spoken in Mind will reach its own level, in the objective world, by its own weight
|
---|
In Section
Seekers of Perl Wisdom