Help for this page

Select Code to Download


  1. or download this
    $ perl -Mdiagnostics -Mwarnings x
    Scalar value @persons[$counter] better written as $persons[$counter] a
    +t x line
    ...
                 count => 0
                  name => Leon
    </pre>
    
  2. or download this
    use warnings;
    use strict;
    # use diagnostics; # verbose but helpful for learning.
    
  3. or download this
    package Adres;
    sub new
    ...
      push @{ $self->{'@persons'} }, $_;
     }
    }
    
  4. or download this
    ##################################################### 
    ## Class Constructor 
    ...
       $self->age(shift);
      }
    }
    
  5. or download this
    sub age
    {
    ...
     }
     return $self->{age};
    }