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 chilling in the Monastery: (5)
As of 2014-10-23 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls