[Cascavel-pm] Módulos do CPAN

Fernando Oliveira fernandocorrea em gmail.com
Quarta Julho 11 13:52:57 PDT 2007


já q é assim:
perl -MExtUtils::Installed -le '$,=$/;print keys%{ExtUtils::Installed->new}'

Em 11/07/07, Nelson Ferraz <nferraz em gmail.com> escreveu:
>
> > Em uma linha:
> >
> > perl -MExtUtils::Installed -e '$inst = ExtUtils::Installed->new();
> > foreach $module ($inst->modules()) { print "$module\n"; }'
>
> O construtor já retorna a lista de módulos instalados:
>
> perl -MExtUtils::Installed -e 'print join("\n", keys %
> {ExtUtils::Installed->new})'
>
> Removendo espaços e parênteses supérfluos:
>
> perl -MExtUtils::Installed -e'print join"\n",keys%
> {ExtUtils::Installed->new}'  # 77 caracteres
>
> Perl golf!!! :-D
>
> _______________________________________________
> Cascavel-pm mailing list
> Cascavel-pm em pm.org
> http://mail.pm.org/mailman/listinfo/cascavel-pm
>



-- 
[]'s Fernando
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://mail.pm.org/pipermail/cascavel-pm/attachments/20070711/d7af2cf7/attachment.html 


Mais detalhes sobre a lista de discussão Cascavel-pm