[! package test::discard ; sub id { my $self = shift ; return "id $self->{n}" ; } sub name { my $self = shift ; return "name $self->{n}" ; } sub new { my $class = shift ; my $n = shift ; my $self = {n=>$n} ; bless $self, $class ; return $self ; } !] [- $obj[0] = test::discard->new (0) ; $obj[1] = test::discard->new (1) ; $obj[2] = test::discard->new (2) ; $obj[3] = test::discard->new (3) ; -]
Objects
[- $o = $obj[$col] -]
[+$o->name+]
[- $o = $obj[$col+5] -]
[+$o->name+]
[- "blabla -] [- $maxrow = 1 -]
Objects
[- $o = $obj[$col] -][+ $o -> id +] [- "blabla -]
[- $xyz[$row] = $row>0?undef:"blabla" -] [- "blabla -]
Objects
[- "blabla -]
[- $o = $obj[$col] -][+ $o -> id +]
[- $xyz[$row] = $row>0?undef:"blabla" -]