in reply to Re: Re: The longest word ....
in thread The longest word ....

heh, stripping blanks off does no good for a real golf ;-) but the idea of skipping the additional hash ofc it' good :) wd. hehe, some golfing you could have done seeing that 'length' appears quite often in your routine ;-)

--
AltBlue.

Replies are listed 'Best First'.
Re: Re: Re: Re: The longest word ....
by sauoq (Abbot) on Nov 12, 2002 at 20:11 UTC
    heh, stripping blanks off does no good for a real golf ;-)

    Sometimes whitespace is necessary so you should strip the unnecessary spaces when you are golfing.

    some golfing you could have done seeing that 'length' appears quite often in your routine ;-)

    Yes, it does. In each case, though, it is taking the length of something different: once for each of $a and $b in the sort, and once for each of $_ and $W[0] in the grep. So, I'm not sure what you point is. Feel free to share your improvements.

    -sauoq
    "My two cents aren't worth a dime.";