Constante usée pour rien Stéphane 8-jui-2002 use constant; my constant $A++ De l'utilisation des attributs Stéphane 8-jui-2002 sub _ : lvalue { $A }; ++_(); D'une autre utilisation des attributs Stéphane 8-jui-2002 use Attribute::Handlers; sub _ : ATTR(SCALAR) { ${$_[2]}++ } my $A : _ ; $A; La cuisine au curry (par Ed) Stéphane 14-jui-2002 use Perl6::Currying; sub add($a, $b) { $a + $b }; $incr = &add.prebind(a=>1); $A = $incr->($A)
-- stefp -- check out TeXmacs wiki
In reply to Re: Perl 5.8.0 and Attribute::Handlers
by stefp
in thread Perl 5.8.0 and Attribute::Handlers
by bronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |