in reply to Wordlist maker

Thanks for all your replies, it looks like that people here at perlmonks.org really like to help beginners like me :) Well i've benchmarked all the suggestions, and the faster is chromatic's suggestion.
four: 24 wallclock secs (20.96 usr + 2.30 sys = 23.26 CPU) one: 30 wallclock secs (28.59 usr + 1.79 sys = 30.38 CPU) three: 22 wallclock secs (19.01 usr + 2.29 sys = 21.30 CPU) two: 15 wallclock secs (13.54 usr + 1.72 sys = 15.26 CPU)
one: my original code two: chromatic's code three: turnstep's code four: turnstep's code, using merlyn's way to print

Replies are listed 'Best First'.
RE: Re: Wordlist maker
by turnstep (Parson) on Sep 17, 2000 at 22:47 UTC

    In my code's humble defense, I'd like to point out three things:

    1. My code was written for large files, to avoid slurping every line into memory.
    2. Chromatic's code as written will not work (there should not be a space after the \n in the first trans.)
    3. Chromatic's code does not check for words that are five or more letters.
      I've already made the correction and added the length check before benchmarking. BTW how come i can't register here at perlmonks.org? I've tried to register 2 times and i didn't received the email with my password in both tries...

        Well, a couple of possibilities come to mind:

        • You entered your e-mail address incorrectly. Due to a recent thread, it crossed my mind that you might have entered your e-mail as "bob@aol" or just "bob" instead of "bob@aol.com" (please don't hate me for having that thought cross my mind).
        • Your e-mail provider or reader is blocking or throwing away the e-mail because it incorrectly thinks it is spam.

        Perhaps vroom could look into this for you. You might want to put the relavent information into a node in the Report a bug section.

                - tye (but my friends call me "Tye")