RE: Break the 65 chars :-)
"Allen, Greg" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Message-ID | <[email protected]> |
61?
-pl /:/;push@{$G{$'}},$`}for(keys%G){$"=", ";s/$/: @{$G{$_}}/
Greg
-----Original Message-----
From: Jose Alves de Castro [mailto:[email protected]]
Sent: Monday, April 26, 2004 3:55 PM
To: [email protected]
Subject: Break the 65 chars :-)
Try to do this in the least amount of characters possible :-)
Sample Input:
root:admins
administrator:admins
me:users
Output:
admins: root, administrator
users: me
My current solution is now on 65 bytes (that's the size of the whole
script), but I guess more experienced golfers than me will probably
manage to do something smaller... :-)
Happy hacking ;-)
jac
--
José Alves de Castro <[email protected]>
Telbit - Tecnologias de Informação
------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.