in reply to Re3: Use an array slices
in thread Use an array slices

Well, "ZERO". But that's easily solvable (although it looks less pretty):

#!/usr/bin/perl -wT use strict; my $value = 10; SWITCH: for ($value) { /^0$/ && do {print "ZERO\n"; last; }; /^1$/ && do {print "ONE\n"; last; }; /^10$/ && do {print "TEN\n"; last; }; print "NONE OF THE ABOVE\n"; }

Leonid Mamtchenkov