Help for this page

Select Code to Download


  1. or download this
    package Person;
    
    ...
            ref => [ qw(father) ],
            }
        };
    
  2. or download this
    my $father = new Person(name => "Charlie Vilain", age => 49,
                            profession => "DMS II Guru");
    ...
    $self->age("old");       # croaks, age is an int
    $self->father("Darth");  # croaks, "Darth" is not a blessed object
    print $self->mother();   # croaks, "mother" not recorded in schema
    
  3. or download this
    srand 3.14159; print join("",
    sort{rand 1<0.5}map{$_^"\037"}split m{
    }x,"qmptk|z~wOzm??l]pUqx^k?j"),",\n";