Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

RE: More Mad Libs

by turnstep (Parson)
on Apr 19, 2000 at 03:00 UTC ( #7981=note: print w/ replies, xml ) Need Help??


in reply to More Mad Libs

Ah, but the original poster required the questions to be asked in the form of all nouns, then all verbs, then all adjectives. Another twist...


Comment on RE: More Mad Libs
RE: RE: More Mad Libs
by btrott (Parson) on Apr 19, 2000 at 03:09 UTC
    I know. But that makes you explicitly spell out which terms you want to use in your mad lib, which isn't very efficient. My snippet rewrite is written in the spirit of plaid's code (here), which scans through the text and prompts the user for terms.
      No, you don't have to spell it out in advance, you just have to have gather them all in, then sort them by type. See my version for one way to do it.
RE: RE: More Mad Libs
by Simplicus (Monk) on Apr 19, 2000 at 17:53 UTC
    I never realized what I was starting here. Thanks for the consideration.
    S

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-10-01 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (38 votes), past polls