RE: logical "and" pattern matching

2003-02-19 Thread Gary Merrick
>Homework help is a touchy subject on this list. What have you tried? > >Have you read: >perldoc perlop >perldoc perlretut Yow! Ok, I have now. I suppose I've missed something, since I haven't yet come up with a solution. :-\ >One sticky point with and/or is that you need to break complex >sta

logical "and" pattern matching

2003-02-19 Thread Gary Merrick
Ok, so this is probably a stupid question, but I'm a newbie, and therefore stupid. :-] It'll take you about 5 seconds to figure this one out. I have an assignment that requires me to find words in a dictionary that contain all five vowels (a, e, i, o, and u). I've figured out the logical "or" p

how to test for numeric user input?

2003-02-04 Thread Gary Merrick
I'm taking a beginning Perl class, and we haven't gotten to pattern matching yet. I need to somehow test for user input being numeric. I think. <:-) The second "elsif" is where I'm hung up. It seems to catch any kind of invalid input, text or numeric. Also, without the first "elsif" statement