In article <[EMAIL PROTECTED]>, Anthony Beaman wrote: > Here's what I got when I ran it: > > C:\>perl hello2.pl > Name your friends: Joe Sam Sally > I know .
This has been answered already (you have one item in your array), so $array[1] is empty. > (good news is that ctrl-z appears to be working again) > > When I ran it a second time and skipped a line, it when to the print > message after I skipped a line after Sam. > > C:\>perl hello2.pl > Name your friends: Joe > Sam > I know . If you skipped a line after Joe, then again $array[1] will be empty. Someone posted clear directions on the input steps. But I agree with what was psoted here, forget the <STDIN> for today and just use: my @array = qw/Kevin Dick Jane/; print "I know $array[1].\n"; > This is driving me crazy! I can't sleep at night! I need to solve this > problem!! I need help!! ARGH!!!! Time to put the book away and watch television for a while. ;-) Come back to it later. [Please don't top-post here! backwards. everything makes It] -- Kevin Pfeiffer International University Bremen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]