Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Re: Re: The longest word ....

by sauoq (Abbot)
on Nov 12, 2002 at 20:11 UTC ( [id://212388]=note: print w/replies, xml ) Need Help??


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

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.";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://212388]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found