if ( $x =~ /^(X|Y|Z)$/ ) # anyone got better? -----Original Message----- From: wix@eskimo.com [mailto:wix@eskimo.com] Sent: Monday, March 04, 2002 2:34 PM To: beginners@perl.org Subject: Comparing to many possibles Greetings; Is there some perl shorthand that will make it easier to say if ( $x eq 'X' || $x eq 'Y' || $x eq 'Z' ) TIA, Dennis -- To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc.Thread Previous | Thread Next