Help for this page

Select Code to Download


  1. or download this
    package Father;
    
    ...
      return bless { news => undef }, $class;
    }
    1;
    
  2. or download this
    package Daughter;
    
    ...
    }
    
    1;
    
  3. or download this
    package Son;
    
    ...
    }
    
    1;
    
  4. or download this
    use lib '.';
    use Daughter;
    ...
    print Dumper($son);
    $daughter->other;
    print Dumper($daughter);
    
  5. or download this
    $ perl 11156317.pl
    
    ...
    $VAR1 = bless( {
                     'news' => 'bad'
                   }, 'Daughter' );