in reply to Re^4: creating all possible random 'words' from 4 letters (pass buck)
in thread creating all possible random 'words' from 4 letters

Oh. Is that right? That wasn't how I read the POD for glob -- how disappointing.

Thanks for setting me straight.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!
Wanted!

  • Comment on Re: Re^4: creating all possible random 'words' from 4 letters (pass buck)

Replies are listed 'Best First'.
Re: Re: Re^4: creating all possible random 'words' from 4 letters (pass buck)
by QM (Parson) on Nov 13, 2003 at 14:23 UTC
    I wasn't sure if BrowserUk was being sarcastic or not...OK, I've decided he was playing straight.

    Yes, a quick check of 5.8.0 shows that this takes a long time to finish:

    foreach ( glob( "{a,b,c,d}" x 10 ) ) { print "$_\n"; last; }
    while this finishes immediately:
    foreach ( 'aaaaaaaaaa'..'dddddddddd' ) { print "$_\n"; last; }
    I'll leave it to OMAR to check the memory use :)

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