RE: Break the 65 chars :-)

Jose Alves de Castro <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
No, that's 78, the way I count :-|

I'm also counting the #!/usr/bin/perl part...

I guess my solution is then 49 chars long... right? :-| (that is, taking
off the 16 chars I'm also counting)

jac


On Mon, 2004-04-26 at 16:59, Allen, Greg wrote:
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.