Larry Wall wrote:
Or just change C<when> to accept a list of things to compare against, followed by a coderef.That, and we'd like a novice to be able to write
given $x { when 1 | 2 | 3 {...} when 4 | 5 | 6 {...} }
-- Rod Adams
Larry Wall wrote:
Or just change C<when> to accept a list of things to compare against, followed by a coderef.That, and we'd like a novice to be able to write
given $x { when 1 | 2 | 3 {...} when 4 | 5 | 6 {...} }