Re: More help with my function

2002-02-15 Thread Francis Henry
nd it comes back with msg: > > Scalar value @answers[$i] better written as $answers[$i] > > So I did. > > Wags ;) > > -Original Message- > From: Steven M. Klass [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 15, 2002 14:09 > To: Wagner-David; [EMAIL P

RE: More help with my function

2002-02-15 Thread James Kelty
. Klass [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 2:09 PM To: Wagner-David; [EMAIL PROTECTED] Subject: Re: More help with my function Hi all, Doh!! It must be MONDAY!! I am such an IDIOT!! Couple of questions. How did changing $prompt [@_[0]] to $prompt $_[0] fix it? I mean why

RE: More help with my function

2002-02-15 Thread Wagner-David
;) -Original Message- From: Steven M. Klass [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 14:09 To: Wagner-David; [EMAIL PROTECTED] Subject: Re: More help with my function Hi all, Doh!! It must be MONDAY!! I am such an IDIOT!! Couple of questions. How did changing $prompt [@_[0

Re: More help with my function

2002-02-15 Thread Steven M. Klass
t; and if ( $response eq $answers ){ to if ( $response eq $answers[$i] ){ > > It ran without any warnings and after I gave correct answer, it quit. > > Wags ;) > -Original Message- > From: Steven M. Klass [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 1

RE: More help with my function

2002-02-15 Thread James Kelty
;$response\n"; } } } } -James -Original Message- From: Steven M. Klass [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 1:26 PM To: [EMAIL PROTECTED] Subject: More help with my function Hi all, Here is a simple script that I am having a heck of a ti

RE: More help with my function

2002-02-15 Thread Wagner-David
swer, it quit. Wags ;) -Original Message- From: Steven M. Klass [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 13:26 To: [EMAIL PROTECTED] Subject: More help with my function Hi all, Here is a simple script that I am having a heck of a time with. I think it will become apparen

More help with my function

2002-02-15 Thread Steven M. Klass
Hi all, Here is a simple script that I am having a heck of a time with. I think it will become apparent what I'm trying to do. Ask a question and validate the answer. &AskQuestion("Enter the hierarchical mode", my @hier = qw/inquiry smart yes/); sub AskQuestion { my $prompt = shift;