>"Anthony Beaman" <[EMAIL PROTECTED]> wrote in message ? >news:[EMAIL PROTECTED] >I typed in 3. For example, "Sam Mary Joe". I expect to get "I know Mary", since she's [1] but I'm getting >a blank space. I've tried this on NT and on my 98 machine here at work.
Hmm, are you just putting spaces between your names. You'll get a new element in your array each time you press enter if you use "@array = <STDIN>". Can you confirm your input data is. Sam[RETURN] Mary[RETURN] Joe[RETURN] CTRL-Z[RETURN] (as you're on windows) try printing $names[0] to prove the point, or print the entire array with... foreach my $name (@names) { print "==> $name\n"; } Good luck -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]