Mark Goland wrote:
>
> From: "John W. Krahn" <[EMAIL PROTECTED]>
>
> > Mark Goland wrote:
> > >
> > > 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
Whoops.
$answer =~ m/^y|n$/i
:O)
- Original Message -
From: "John W. Krahn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 2:38 PM
Subject: Re: Delimiter Question
> Mark Goland wrote:
> >
> > > How do I challene
Mark Goland wrote:
>
> > 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 =
"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.
>
> > -Ori
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
$answer =~ m/^[YyNn]/;
/R
"Vuctor Akinnagbe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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