Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Removing all non 8 letter words from the dict/words file

by /Silver_Wolf (Novice)
on Apr 10, 2006 at 00:02 UTC ( [id://542189]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Removing all non 8 letter words from the dict/words file
in thread Removing all non 8 letter words from the dict/words file

the only problem with that is that the lines that I want to include have only 1 thing different than the words I want:
They are all lower case
...so I didn't think you could use lower case to sort the words.
But by all means feel free to prove me wrong.
Creating chaos out of order.
  • Comment on Re^3: Removing all non 8 letter words from the dict/words file

Replies are listed 'Best First'.
Re^4: Removing all non 8 letter words from the dict/words file
by QM (Parson) on Apr 10, 2006 at 00:17 UTC
    Only lower case:
    while (<>) { print if /^[a-z]+$/; }

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

Re^4: Removing all non 8 letter words from the dict/words file
by unobe (Scribe) on Apr 10, 2006 at 00:24 UTC
    I really don't understand what you mean by:
    the only problem with that is that the lines that I want to include have only 1 thing different than the words I want
    Could you please rephrase it? Also, you should really do what QM suggests, and read perlre, or even perlretut. They really do help, and it doesn't look like you have read either yet.
      Sorry what I ment to say way "the only difference between the words I want and the ones I don't want."
      I'm a little sick and my brain isn't working very well at the moment.
      Creating chaos out of order.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-20 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found