Help for this page

Select Code to Download


  1. or download this
    sub new {
      my ($class,%args) = @_;
      my $new_object = $class->SUPER::new(%args);
      ....
    
  2. or download this
    $ perl t2.pl
    I'm in the child_class new
    ...
    Use of uninitialized value in array element at /home/glide/develop/per
    +l_tests/Object_InsideOut/class_insideout.pm line 28.
    Use of uninitialized value in concatenation (.) or string at /home/gli
    +de/develop/perl_tests/Object_InsideOut/class_insideout.pm line 28.
    address:
    
  3. or download this
    package class_insideout;
    use strict;
    ...
      }
    }
    1;
    
  4. or download this
    package child_class;
    
    ...
      }
    }
    1;
    
  5. or download this
    use strict;
    use warnings;
    ...
    my $person = child_class->new(id=>1,name=>'aaa',address=>'bbb') or die
    +();
    
    $person->write();