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
. 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
;)
-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
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
;$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
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
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;