- or download this
package Foo;
use strict;
...
}
1;
- or download this
#!/usr/bin/perl
use strict;
...
my $foo = new Foo();
print Dumper(\$foo),"\n";
- or download this
package Bar;
use strict;
...
use base qw( Foo );
1;
- or download this
#!/usr/bin/perl
use strict;
...
my $bar = new Bar();
print Dumper(\$bar),"\n";