Larry Wall wrote:

That, and we'd like a novice to be able to write

   given $x {
        when 1 | 2 | 3 {...}
        when 4 | 5 | 6 {...}
   }

Or just change C<when> to accept a list of things to compare against, followed by a coderef.

-- Rod Adams

Reply via email to