Thanks for the help. I'm really just starting out with regex's, and I guess I should have remembered the no-no. It's my fault. Always's looking for constructive criticism (what did I just get my self into???).
Re: Re: BOfH Random Excuse Generator
Replies are listed 'Best First'.
Don't worry about it. I ++'d your fine node, and so did a
lot of other people. You posted working code that used
-w & strict so, you are by definition a Righteous Dude.
Everything can be improved, including
what I posted.
print "\n$word1 $word2 $word3 $word4\n" if (($ans = <STDIN>) =~ /^y/);
could have been
print "\n$word1 $word2 $word3 $word4\n" if (<STDIN> =~ /^y/i);
print "\n$word1 $word2 $word3 $word4\n" if (<STDIN> =~ /^[Yy]/);