Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^7: Experimenting with Lvalue Subs

by Juerd (Abbot)
on Jan 27, 2005 at 22:53 UTC ( #425803=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo : Property { $_ < 10 }
    
    main->foo = 9;
    main->foo++;  # dies
    
  2. or download this
    has $foo where { $_ < 10 };
    
  3. or download this
    my $foo where { $_ < 10 };
    
    $foo = 9;
    $foo++;  # dies
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-02 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (33 votes), past polls