- or download this
package Foo::Bar;
use vars qw( $VERSION );
...
print "helper returns ",helper($self),"\n";
}
1;
- or download this
#!/usr/bin/perl
my $foo = Foo::Bar->new(method => 'helper');
...
Foo::Bar::Object::method: $self = Foo::Bar=SCALAR(0x8205ba4)
Foo::Bar::Object::method: method = helper
helper returns helper
- or download this
package Foo::Bar::_implement;
sub Foo::Bar::new {
...
$thingy;
}