Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

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


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 08: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
Node Status?
node history
Node Type: note [id://128830]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-06-25 01:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?