Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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?
[erix]: you could say you were part of the simulation
[stevieb]: I'd take full responsibility myself... "man, I was so hung over I could barely read what the email said!"
[zarath]: "Smee, the boo-box..."

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2017-05-24 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?