- or download this
package foo;
use strict;
...
return $self->{_foo};
}
1;
- or download this
package bar;
use strict;
...
return $self->{_bar};
}
1;
- or download this
package foobar;
use strict;
...
return $self->foo() . $self->bar();
}
1;
- or download this
use strict;
use foobar;
...
my $fb = new foobar( foo=>'Lance', bar=>'Deeply' );
print $fb->getFooBar() ."\n";
}