Re: Break the 65 chars :-)

Jose Alves de Castro <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
I knew I would learn something from you guys, and so far I have :-)

Thanks, everyone :-)


On Mon, 2004-04-26 at 18:27, A. Pagaltzis wrote:
> * Jose Alves De Castro <[email protected]> [2004-04-26 18:36]:
> > #!/usr/bin/perl -l0n
> > /:/;$_{$'.$&}.=" $`,"}{map{s/,$/
> > /;print}%_
> 
> Trivial improvement, for a gain of 5 chars:
> 
>     #!/usr/bin/perl -l0p
>     /:/;$_{$'.$&}.=" $`,"}for(%_){s/,$/
>     /;
> 
> I've tried other clever things, but they all come out longer.
-- 
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.