trouble with case-sensitivity

2002-12-05 Thread Andrew F.
I wrote a simple program, and I decided to put a piece at the end which would allow the user to start the program over. I did it like this: print "\n\n" . 'Do you want to do another comparison (Y or N)?' . "\n"; $again = ; if ($again == /'y'/i) {; goto compare; };

Joining with a basic question

2002-12-02 Thread Andrew F.
Hello all. My name is Andrew. I might as well get right to it. I'm writing a real basic script, since I'm still learning Perl. It looks like this: print "Input a name: "; #Prompt for a name sleep .5; $name1 = ;#User input print "\nInput anot