[SP-pm] Indirect call

Stanislaw Pusep creaktive at gmail.com
Thu Dec 20 08:39:26 PST 2012


Trazendo um tópico que surgiu no Moscow.pm:

$ perl -Mstrict -M5.010
sub Content::headers { say "@_"; return 456 }
sub call(@) { say "call: @_" }
call( headers { "Content" => 123 } "new","arg" );

Tentem deduzir o que será printado, e depois executem.

ABS()
-------------- Pr�xima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20121220/f9fd53a3/attachment.html>


More information about the SaoPaulo-pm mailing list