Help for this page

Select Code to Download


  1. or download this
    package Lvalue::GetSet;
    
    use Exporter;
    ...
    sub STORE {
        $_[0]->{set}->($_[1]);
    }
    
  2. or download this
    sub name {
        my $me=shift;
        get {
    ...
           $me->{name} = $1;
        }
    }