Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: BOfH Random Excuse Generator

by mexnix (Pilgrim)
on May 27, 2001 at 08:45 UTC ( #83573=note: print w/ replies, xml ) Need Help??


in reply to Re: BOfH Random Excuse Generator
in thread BOfH Random Excuse Generator

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???).

mexnix


Comment on Re: Re: BOfH Random Excuse Generator
Replies are listed 'Best First'.
Re: Re: Re: BOfH Random Excuse Generator
by virtualsue (Vicar) on May 27, 2001 at 13:06 UTC
    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.

    For instance,

    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); or print "\n$word1 $word2 $word3 $word4\n" if (<STDIN> =~ /^[Yy]/);

    Updated per chromatic's suggestion to allow for case insensitive matching.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83573]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (19)
As of 2015-07-28 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls