2011/1/16 Renato Santos <[email protected]>:
> 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" <[email protected]>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: [email protected]
> 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: [email protected]
> 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."
=begin disclaimer
Sao Paulo Perl Mongers: http://sao-paulo.pm.org/
SaoPaulo-pm mailing list: [email protected]
L<http://mail.pm.org/mailman/listinfo/saopaulo-pm>
=end disclaimer