> How do I challenege more than one variable like I want to 
>  check for the input of Y N y or n for a yes no question. I 
>  put until $answer =~ m/YyNn/ that did not work. Anybody have 
> any solutions?

the way you did it, would need to use or operator
$answer =~ m/Y|y|N|n/
you probebly want to check if thats the only thing entred, 

$answer =~ m/^yn$/i  
 
^ begins with, $ ends with, i is for case insensetive.

Mark
 
----- Original Message ----- 
From: "Paul Kraus" <[EMAIL PROTECTED]>
To: "'Vuctor Akinnagbe'" <[EMAIL PROTECTED]>; "Perl" <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 10:21 AM
Subject: RE: Delimiter Question


> I think you mean $answer m/[YyNn]/
> 
> yours is looking for $answer to contain "YyNn"
> the brackets mean any one of the following.
> 
> > -----Original Message-----
> > From: Vuctor Akinnagbe [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, January 09, 2003 10:11 AM
> > To: [EMAIL PROTECTED]
> > Subject: Delimiter Question
> > 
> > 
> > How do I challenege more than one variable like I want to 
> > check for the input of Y N y or n for a yes no question. I 
> > put until $answer =~ m/YyNn/ that did not work. Anybody have 
> > any solutions?
> > 
> > 
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> > 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to