Hey. I've got a module that give back lists of user responsibilites for case numbers using the last 2 digits, e.g. $mgr = 'andy' if $case_no =~ /[0-4]5$/; $mgr = 'tina' if $case_no =~ /[5-9]5$/; ... print "Manager is: $mgr\n"; I've a test that gives back all the case mgrs and their number ranges, but it looks like: andy: [01234]5 tina: [56789]5 I'd like to have the [x-x] ranges back in the output, which I can do brute force-ish, but I have this nagging sense that there is a clever way to do it. Any guesses? Thanks. a Andy Bach, Sys. Mangler CC:Mail andy bach at ~7ca-chicago Internet: andy@wiwb.uscourts.gov VOICE: (608) 264-5178 ex 5738, FAX 264-510 UNIX *is* user friendly. It is just a bit selective about her friends. ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe