[SP-pm] descubrir o tipo da variavel

Daniel de Oliveira Mantovani daniel.oliveira.mantovani at gmail.com
Mon Jul 12 07:03:18 PDT 2010


2010/7/12 Giuliani Sanches <giulianisanches em gmail.com>:
> Uma forma:
>
> http://perldoc.perl.org/perlfaq4.html#How-do-I-determine-whether-a-scalar-is-a-number%2fwhole%2finteger%2ffloat%3f

Eu acho que ele está com problemas com o que é a referência,
perl -E 'my  $ bar = \%foo;say ref($bar)'

É melhor esperar ele responder a pergunta que o Shonorio fez.

[]'s

>
> []'s
>
> 2010/7/12 Lucas Moraes <mineiro em live.be>:
>> Oi gente, gostaria de saber se Perl tem alguma função primitiva para saber o
>> tipo da variavel ou eu tenho que verificar com expressões?
>>
>> Um abraço.
>>
>> Deus é o limite!
>>
>> ________________________________
>> Tijd voor een nieuwe telefoon? Bekijk de mogelijkheden van een Windows
>> Phone!
>> _______________________________________________
>> SaoPaulo-pm mailing list
>> SaoPaulo-pm em pm.org
>> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>>
>
>
>
> --
> Giuliani Sanches
> twitter.com/giulianisanches
> giulianisanches.blogspot.com
>
> Como elaborar uma pergunta:
> http://www.istf.com.br/perguntas/
> _______________________________________________
> 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