[SP-pm] printenv em perl?

Daniel de Oliveira Mantovani daniel.oliveira.mantovani at gmail.com
Sun Jun 20 14:05:09 PDT 2010


2010/6/20 Thiago Glauco Sanchez <thiagoglauco em ticursos.net>:
> Em 20/06/2010 15:25, Nelson Ferraz escreveu:
>>
>> Em 20 de junho de 2010 20:15, jimmy<jimmy.tty em gmail.com>  escreveu:
>>
>>>
>>> Saudações amigos,
>>>
>>> Ando procurando uma forma de fazer em perl algo parecido com o comando
>>> printenv do coreutils faz no shell
>>>
>>
>> Let me google that for you:
>>
>> http://lmgtfy.com/?q=printenv+perl
>> _______________________________________________
>> SaoPaulo-pm mailing list
>> SaoPaulo-pm em pm.org
>> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>>
>>
>
> Você está procurando algo como:
>
> perl -M5.12.0 -e 'map { say "$_ =>  $ENV{$_}" } keys %ENV'
>

Faz tempo que não jogo golf,

perl -E 'say while$_=join" => ",each%ENV'

> ????
>
> --
> Thiago Glauco Sanchez
> Intrutor Perl e Redes
> www.ticursos.net
>
> _______________________________________________
> SaoPaulo-pm mailing list
> SaoPaulo-pm em pm.org
> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>



-- 
http://www.danielmantovani.com
"If you’ve never written anything thoughtful, then you’ve never had
any difficult, important, or interesting thoughts. That’s the secret:
people who don’t write, are people who don’t think."


More information about the SaoPaulo-pm mailing list