Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: "Countdown" (golf)

by stuffy (Monk)
on Dec 01, 2001 at 03:17 UTC ( [id://128830]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: "Countdown" (golf)
in thread "Countdown" (golf)

dragonchild
your solution has the same problems as gbarr It only prints out the first of the longest words.

Stuffy
That's my story, and I'm sticking to it, unless I'm wrong in which case I will probably change it ;~)
may be reproduced under the SDL

Replies are listed 'Best First'.
Re4: "Countdown" (golf)
by blakem (Monsignor) on Dec 01, 2001 at 03:38 UTC
    I think you might want to recheck your tests... perhaps with your test there *is* only one longest word.

    For the list qw(a r t) both dragonchilds and gbarrs solutions produce 'art', 'tar', and 'rat' for me.

    -Blake

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://128830]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.