[SP-pm] tipagem de variaveis em perl
Tiago Peczenyj
tiago.peczenyj at gmail.com
Thu Jul 14 18:24:54 PDT 2011
Galera
esta sintaxe sempre me deixou confuso, alguem pode dar uma esclarecida?
Olhando o exemplo do TheSchwartz no Cpan - [
http://search.cpan.org/~sixapart/TheSchwartz-1.10/lib/TheSchwartz.pm ]
nesse caso:
my TheSchwartz::Job $job = shift;
Para que serve isso? No perldoc eu li que
"The exact semantics and interface of TYPE and ATTRS are still
evolving. TYPE is currently bound to the use of the fields pragma"
mas não encontrei nenhuma referencia a pragma fields. Pra que isso?
--
Tiago B. Peczenyj
Linux User #405772
http://pacman.blog.br
More information about the SaoPaulo-pm
mailing list