- or download this
package MyMother;
use strict;
...
}
sub modified { $_[0]->{MODIFIED} }
- or download this
package MyChild;
use strict;
...
}
$self;
}
- or download this
#!/usr/bin/perl -wd
use MyChild;
...
$ch = MyChild->new(1);
$ch->{MODIFIED} = 1;
print $ch->modified."\n";