this worked for me.
#!/usr/bin/perl -w until ($selection=~/[129]/){ print "Hello\n"; $selection = 1; } I tried 1239. 129 print "hello" once. 3 is endless hello loop. Or you can do until (($selection==1)||($selection==2)||($selection==9)){ code; } hope that helps. > -----Original Message----- > From: Dylan Boudreau [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 12:24 PM > To: [EMAIL PROTECTED] > Subject: menu > > > 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 > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]