Dylan Boudreau wrote: > I am trying to make a small menu for a script and the options are 1 > or 2 or 9. I have it written like this > > until ($selection == '1|2|9'){ > do some stuff > } > > > and it wont work. I know it is something simple but I am a little > simple myself today and don't know what I am doing wrong. > > > Thanks, > > Dylan
until ( $selection =~ /^\s*[129]\s*$/ ) Wags ;) ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]