Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Perl 5.8.0 and Attribute::Handlers

by stefp (Vicar)
on Jul 29, 2002 at 21:00 UTC ( #186075=note: print w/replies, xml ) Need Help??


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)

-- stefp -- check out TeXmacs wiki

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://186075]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2021-03-07 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (121 votes). Check out past polls.

    Notices?