- 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>
- or download this
use warnings;
use strict;
# use diagnostics; # verbose but helpful for learning.
- or download this
package Adres;
sub new
...
push @{ $self->{'@persons'} }, $_;
}
}
- or download this
#####################################################
## Class Constructor
...
$self->age(shift);
}
}
- or download this
sub age
{
...
}
return $self->{age};
}