Luke Palmer writes:
> Some of my students want to go:
>
> if ($x == 1 || 2) { ... }
>
> Now they can:
>
> if $x == 1 | 2 { ... } I like that a lot. (Some of my students also want to do that.) You can write an equivalent thing in Icon: if x = (0 | 1) though (if memory serves) the parens are required. And in Icon it's done with backtracking, not superpositions. -- Aaron Crane * GBdirect Ltd. http://training.gbdirect.co.uk/courses/perl/
