in reply to Perl 5.8.0 and Attribute::Handlers
$A++, always surfing the bleeding edge of technology demonstrates the use of attributes... and currying to
add some condiments.
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)
In Section
Seekers of Perl Wisdom