[SP-pm] Modern Perl Books: How to Identify a Good Perl Programmer

Daniel de Oliveira Mantovani daniel.oliveira.mantovani at gmail.com
Sun Jan 16 17:28:19 PST 2011


 2011/1/16 Renato Santos <renato.cron em gmail.com>:
> Lo, tem algumas q eu nao sei...
> Qual a diferença entre return ; e return undef; para quem chama?

sub function {return undef};
my @foo = function();
print scalar @foo;

sub function { return; }
my @foo = function();
print scalar @foo;

sub function { return undef; }
my @foo = function();
print "hey baby" if @foo;

;)



>
> Em jan 16, 2011 9:24 PM, "Thiago Rondon" <thiago em aware.com.br>escreveu:
>
>
> Pessoal,
>
> Uma dica para leitura no final do domingo:
>
> http://www.modernperlbooks.com/mt/2011/01/how-to-identify-a-good-perl-programmer.html
>
> Abs!
> -Thiago Rondon
>
> =begin disclaimer
>  Sao Paulo Perl Mongers: http://sao-paulo.pm.org/
> SaoPaulo-pm mailing list: SaoPaulo-pm em pm.org
> L<http://mail.pm.org/mailman/listinfo/saopaulo-pm>
> =end disclaimer
>
> =begin disclaimer
>   Sao Paulo Perl Mongers: http://sao-paulo.pm.org/
>  SaoPaulo-pm mailing list: SaoPaulo-pm em pm.org
>  L<http://mail.pm.org/mailman/listinfo/saopaulo-pm>
> =end disclaimer
>
>



-- 
"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