Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Excluding words with more than three a

by merlyn (Sage)
on Dec 20, 2001 at 06:35 UTC ( [id://133381]=note: print w/replies, xml ) Need Help??


in reply to Excluding words with more than three a

I smell a class assignment.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Excluding words with more than three a
by japh (Friar) on Dec 20, 2001 at 07:00 UTC
    Does it remind you of bananas, like old-school purple mimeographs?
Re: Re: Excluding words with more than three a
by Anonymous Monk on Dec 20, 2001 at 21:02 UTC
    No, not really. I often need to massage text, not only for work related issues, but sometimes for pleasure too, that is, to solve word games or at least to find a clue. Having heard elsewhere about perl superb capacities to deal with text stuff, I began involved with this language in mid-2001. Since then I have read what I could in my free time, but unfortunately it seems not enough yet.

    In case you are wondering, my posted question were related to a word game (in Spanish): reorder all the letters of the names of the days and find four words (or less, unlikely).

    At first I tried to find out how many words match those criteria, so I began to filter a 100,000 word list, excluding words with unwanted letters, and words with less than 7 letters, but when I tried to filter words with more than the required amount of letters (that is, words with more than 3 a's, etc.) I was unable to code a working solution. So I asked for help.

    After running a solution provided by wog, I still have in the output file almost 33,000 words, so I must think on more filters to apply. And no, I won't even try myself to solve all the problem with perl, since as you surely have already guessed my current perl skills are way behind it.

    If you like to post some suggestions or other advises, I will be very pleased to read them.

    Thank you.

    Best regards,
    Richard

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-28 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found