> -----Original Message-----
> From: Andrea Holstein [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 02, 2002 6:14 AM
> To: [EMAIL PROTECTED]
> Subject: Re: quick sort --help me
> 
> ...
> Perlish: print "Enter the $_ number", $a[$_-1] = <STDIN> for (1 .. 4);

Note that the assignment is seen as a term in the list supplied to
print, so it will be executed *before* the prompt is printed.

To make the comma into a sequence operator, you need to add parens:

   print("Enter the $_ number"), $a[$_-1] = <STDIN> for (1 .. 4);

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

Reply via email to